-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.1] Fix user field validation on change #42756
Conversation
I wouldn't add another listener into the validate.js. joomla-cms/build/media_source/system/js/fields/joomla-field-user.w-c.es6.js Lines 142 to 146 in 4e6d9ea
with this: dialog.addEventListener('joomla-dialog:close', () => {
window.removeEventListener('message', msgListener);
dialog.destroy();
this.dialog = null;
this.inputName.focus();
this.buttonSelect.focus();
}); Basically it's a focus delegation problem... |
I have tested this item ✅ successfully on 57babee This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42756. |
I have tested this item ✅ successfully on 0dabe82 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42756. |
1 similar comment
I have tested this item ✅ successfully on 0dabe82 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42756. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42756. |
I have tested this item 🔴 unsuccessfully on dc0db7f This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42756. |
"Apply patch" button doesn't work. Error message is "There are no files to patch from this pull request. This may mean that the files in the pull request are not present in your installation." |
I have tested this item 🔴 unsuccessfully on dc0db7f "There are no files to patch from this pull request. This may mean that the files in the pull request are not present in your installation." This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42756. |
@crimle @Nuyonuyonoina @eddiekonczal I will reset the negative test results as they are not caused by this PR. The PR modifies an NPM dependency, which can be seen by the label "NPM Resource Changed". Such PRs can't be tested with Patchtester, they require either a development environment with composer and NPM, or they need to be applied by using the packages created by drone, which can be found in the "Downloads" section of the integration checks at the bottom of the PR. |
Thx |
Summary of Changes
This PR fixes error validation on a "User" field when a user is selected.
Testing Instructions
administrator/index.php?option=com_messages&view=messages
Actual result BEFORE applying this Pull Request
Field remained red with the error message
Expected result AFTER applying this Pull Request
Error message is removed and field border turns green