Skip to content
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

Reset Select component correctly in Firefox/Edge #987

Merged
merged 8 commits into from
Mar 22, 2020

Conversation

kuy
Copy link
Contributor

@kuy kuy commented Mar 1, 2020

Fixes #630

On Firefox/Edge, it's needed to set value using DOM API to reflect a state of dropdown. To hold a reference of select element, I introduced a new field select_ref.

I didn't add dedicated example because it's very small. I thought that increasing redundant examples is not good for the project for maintenance cost. Instead of that, I placed "Reset" button in showcase example. This is not MUST feature, but good demonstration.

@kuy kuy changed the title Reset Select component correctly in Firefox/Edge WIP: Reset Select component correctly in Firefox/Edge Mar 1, 2020
@kuy kuy changed the title WIP: Reset Select component correctly in Firefox/Edge Reset Select component correctly in Firefox/Edge Mar 22, 2020
@kuy kuy marked this pull request as ready for review March 22, 2020 09:27
@kuy
Copy link
Contributor Author

kuy commented Mar 22, 2020

@jstarry Thanks for helping me on Gitter. Ready for review.

Copy link
Member

@jstarry jstarry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't add dedicated example because it's very small. I thought that increasing redundant examples is not good for the project for maintenance cost. Instead of that, I placed "Reset" button in showcase example. This is not MUST feature, but good demonstration.

Great idea! Looks fantastic, thank you so much!

src/components/select.rs Outdated Show resolved Hide resolved
@jstarry jstarry merged commit 7028c80 into yewstack:master Mar 22, 2020
@kuy kuy deleted the reset-select-component branch March 22, 2020 17:40
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.

Select component cannot be reset in Firefox or Edge
2 participants