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

feat(dropdown-select): add name prop #1417

Merged
merged 1 commit into from
Dec 19, 2022
Merged

Conversation

acstll
Copy link
Collaborator

@acstll acstll commented Dec 13, 2022

Fixes #1360.

This is exclusively only adding the prop to <scale-dropdown-select>. So when you listen for the scale-change event you can use event.target.name.

@filipjnc I think a hidden input element would be best added by yourself as a sibling of the Dropdown Select. If we put it inside the shadow DOM it will have no effect on form submission.

In the near future we could use ElementInternals to make "form associated" components. It's currently not supported by Safari, thou there's a polyfill. A there's also other ways to do it. It's —as always— just a matter of prios…


@felix-ico would you be so kind to review this one?

@acstll acstll requested a review from nowseemee as a code owner December 13, 2022 16:01
@render
Copy link

render bot commented Dec 13, 2022

@acstll acstll force-pushed the fix/dropdown-select-name-1360 branch from 40964d0 to 00e3c64 Compare December 19, 2022 10:13
@acstll acstll merged commit 37f1612 into main Dec 19, 2022
@acstll acstll deleted the fix/dropdown-select-name-1360 branch December 19, 2022 12:12
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.

Add property "name" to DropdownSelect component
1 participant