Thats great! Hey, if you didn't see it, I updated my post above with some additional issues I ran in to while testing, hope you'll have some time to look at it. Have a nice weekend
Announcement
Collapse
No announcement yet.
X
-
Hello, following up on this, checking if you had the time to investigate. To recap, the fix is not really usable since it's not possible to distinguish between focus on the field and the icon next to it.
--- :
I have another problem getting this to work:
My plan was to add a focus handler, and when the onFocus is called on the datetimeitem, set selection range. The problem is that the method gets called, and then again when the user tabs to the small calendar select icon. In both cases isFocused() returns true.
I don't want to call setSelectionRange when the icon gets focus, because that makes the caret jump back to the text field right away...
Not sure how to solve this - I can't have an internal boolean "focusalreadycalled" because the handler doesn't get called when the item loses focus, so I can't reset the boolean.
Basically, I need to know if it's the text item, or the icon that is given focus in the event.
Comment
Comment