-
Notifications
You must be signed in to change notification settings - Fork 9.4k
ui select list visible even though it is disabled #27896
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
ui select list visible even though it is disabled #27896
Conversation
Hi @Mohamed-Asar. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
@lenaorobei please review it. |
@magento run Functional Tests CE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Mohamed-Asar. From the description it is hard to understand the actual issue and and the value of fix. Could you please provide more information?
Hi, @lenaorobei I have updated the issue description. please check. let me know if you need more information. |
Hi @Mohamed-Asar. |
…into ui-select-list-visible-bug
Hi @Mohamed-Asar, I'm closing this PR now due to inactivity. |
Hi @Mohamed-Asar, thank you for your contribution! |
@engcom-Charlie Please re-open this PR @engcom-Echo I could n't able to cover mftf for this case. because this issue exists only when the ui-select dropdown is disabled, Not able to disable the ui-select by mftf. |
Hi @Mohamed-Asar. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. |
@magento create issue |
Hi @gabrieldagama, I couldn't able to cover MFTF for this issue. Which tests do I need to cover? |
Hi, @Mohamed-Asar I think we can use MFTF tests to make sure when the user clicks on the select, if the field is disabled the underneath window doesn't open, what do you think? |
Hi, @Mohamed-Asar. It may be easier for you to cover this with Jasmine test. |
@engcom-Echo Sure Will do. |
@magento run all tests |
@engcom-Echo @gabrieldagama covered this change with the jasmine test. please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates @Mohamed-Asar, the changes are approved.
Hi @gabrieldagama, thank you for the review.
|
✔️ QA Passed Manual testing scenario:
this.disabled(true);
Before: ✖️ after disabling the options are still visible After: ✔️ list options are not visible anymore when it's disabled |
Hi @Mohamed-Asar, thank you for your contribution! |
Description (*)
This PR fixes the following bug,
If we disable the UI select component by using this.disabled(true). still its options are visible when we click it. please see the below image for reference.
Before:
After:
Manual testing scenarios (*)
Navigate to the product edit page.
Disable any one of the UI select using the following code (this.disabled(true))
Now click the UI select, list options are not visible anymore when it's disabled
Contribution checklist (*)
Resolved issues: