how to use $eventcatcher with focus/blur on $edit-text widgets #5912
-
I am trying to use $event-catcher to trigger "side-effect" actions when an $edit-text widget gets or loses focus. I tried the following test, but it doesn't seem to do anything:
In contrast, if I use the following, it reports the mousedown event on the debugging console:
As an alternative, would it be reasonable to add "onFocus" and "onBlur" params to the $edit-text widget, so that I could write: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @ericshulman, The underlying issue is that the focus and blur events don't bubble. I have used the
|
Beta Was this translation helpful? Give feedback.
Hi @ericshulman,
The underlying issue is that the focus and blur events don't bubble. I have used the
focusin
andfocusout
events in similar situations. Would this work for you for the time being?