Skip to content

Fix for WICKET-7182#1477

Merged
bitstorm merged 1 commit into
apache:wicket-10.xfrom
jackeri:fix/WICKET-7182
Jun 7, 2026
Merged

Fix for WICKET-7182#1477
bitstorm merged 1 commit into
apache:wicket-10.xfrom
jackeri:fix/WICKET-7182

Conversation

@jackeri

@jackeri jackeri commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

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
Contributor 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.

@bitstorm bitstorm merged commit d139e8e into apache:wicket-10.x Jun 7, 2026
3 checks passed
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.

3 participants