Hi Claudia,

I'd suggest you to use your browser's Dev Tools and put a breakpoint on
'focusout' event and see how many times it fires and what is the
reason/initiator.

On Fri, Jun 12, 2020 at 11:56 AM Claudia Beck <[email protected]> wrote:

> Hi all,
>
> i came across the issue when binding a focusout event to a text field,
> it fires twices each time when leaving the textfield.
>
> Example code:
>
> TextField<String> textbox = new TextField<>("textbox");
> textbox.add(new AjaxEventBehavior("focusout") {
>              @Override
>              protected void onEvent(AjaxRequestTarget target) {
>                  System.out.println("Focus lost on TextField");
>              }
> });
> add(textbox);
>
> This does not happen for blur event. Can this may be caused by event
> bubbling of focusout?
>
> Best regards,
> Claudia Beck
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to