Skip to content

Fix for WICKET-7182#1477

Open
jackeri wants to merge 1 commit into
apache:wicket-10.xfrom
jackeri:fix/WICKET-7182
Open

Fix for WICKET-7182#1477
jackeri wants to merge 1 commit into
apache:wicket-10.xfrom
jackeri:fix/WICKET-7182

Conversation

@jackeri
Copy link
Copy Markdown

@jackeri jackeri commented Jun 4, 2026

Wrapped the fetched element with jQuery to use the event call, like with other calls on the script.

if (document.activeElement !== input) {
ignoreOneFocusGain = true;
input.trigger('focus');
jQuery(input).trigger('focus');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better use https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus
All major browsers support it.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, but then it would be better to upgrade the whole style of the script. This keeps the same style as with the other calls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants