-
Notifications
You must be signed in to change notification settings - Fork 22
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
fix(insert-variables): Dropdown shouldn't store the option selected. #468
Conversation
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.
@creador-dev review again your changes, please. Remember, if developers use the SUI.select.initVars
function they need to get everything from it. There's no need to re-add the clear function again because if it doesn't work right now on the showcase it won't for sure on the plugins. Dig a bit more and try a better solution.
|
||
let select = $( this ); | ||
|
||
select.val( null ).trigger( 'change' ); |
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.
@creador-dev why not try clearing the selected value when the dropdown closes? You will simplify the code, and also we make sure to have the best experience for screen reader users.
No description provided.