This seems to be a jquery issue, when i bind the event with jquery (none wicket) it also gets fired twice and I see no reason for it in dev tool. In our case we can solve this using blur instead of focusout. This gets fired only once, but anyway I wonder why...
Thanks for your answer! Best regards, Claudia Am 13.06.2020 um 08:01 schrieb Martin Grigorov:
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]
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
