Skip to content

Fixed an issue where dnn-select was not being properly initialized#1288

Merged
valadas merged 1 commit intoDNNCommunity:developfrom
valadas:dnn-select-init
Apr 10, 2025
Merged

Fixed an issue where dnn-select was not being properly initialized#1288
valadas merged 1 commit intoDNNCommunity:developfrom
valadas:dnn-select-init

Conversation

@valadas
Copy link
Copy Markdown
Member

@valadas valadas commented Apr 10, 2025

When feeding elements in the slot of dnn-select with a pre-selected item (selected = true) like when used on a form to edit something existing instead of doing something new; The underlying initialization logic was not setting the form level value upon initialization. This caused a discrepancy as it would display as valid but would prevent form submission because the form was not valid.

Also the form onInvalid event was not being fired making it even more confusing. This part was fixed in the dnn-button logic.

When feeded <option> elements in the slot of dnn-select with a pre-selected item (selected = true) like when used on a form to edit something existing instead of doing something new; The underlying initialization logic was not setting the form level value upon initialization. This caused a discrepency as it would display as valid but would prevent form submission because the form was not valid.

Also the form onInvalid event was not being fired making it even more confusing. This part was fixed in the dnn-button logic.
@valadas valadas added the bug Something isn't working label Apr 10, 2025
@valadas valadas added this to the 0.26.1 milestone Apr 10, 2025
@valadas valadas merged commit 33cb6f7 into DNNCommunity:develop Apr 10, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant