Skip to content

Commit cc8ef4d

Browse files
authored
[5.1] Fix user field validation on change (#42756)
1 parent 169218b commit cc8ef4d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build/media_source/system/js/fields/joomla-field-user.w-c.es6.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ class JoomlaFieldUser extends HTMLElement {
143143
window.removeEventListener('message', msgListener);
144144
dialog.destroy();
145145
this.dialog = null;
146+
// Focus on the input field to re-trigger the validation
147+
this.inputName.focus();
148+
this.buttonSelect.focus();
146149
});
147150

148151
this.dialog = dialog;

0 commit comments

Comments
 (0)