-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
refactor(components): miscellaneous form updates #100
Conversation
Pass attrs through to form element, pass event with data on emits, update test snapshot
@@ -7,7 +7,7 @@ exports[`QuickSearchForm component > Renders a QuickSearchForm 1`] = ` | |||
</p> | |||
</div> | |||
<div class="pdap-quick-search-form h-full max-h-[75-vh] justify-start p-0"> | |||
<form class="pdap-form flex flex-wrap gap-x-4" id="quick-search-form" name="quickSearchForm"> | |||
<form class="pdap-form flex flex-wrap gap-x-4 flex flex-wrap gap-x-4" id="quick-search-form" name="quickSearchForm"> |
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.
this isn't hurting anything, but maybe redundant? I would believe these are generated and applied to the form for some valid reason that would affect the snapshot, though.
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.
@josh-chamberlain No, that's important, actually, thank you for catching. It relates to v-bind
merge behavior, and could cause problems in Form
down the line. Making this update and one other.
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.
I left a nitpick but this looks good
Remove explicit attrs binding
include coverage for setValues
🎉 This PR is included in version 3.0.0-beta.9 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 3.0.1-beta.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 3.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Miscellaneous updates to
Form
Background
Description
submit
andchange
events (change
is actually theinput
event on form input elements, but changing this would be breaking, so we'll wait)setValues
method onForm
, allowing calling components to update the full values state programatically. (Useful for instance insearch-v2
, where we may want to default toAll record types
being checked, but uncheck it any time another record type is checked, and vice versa.)Acceptance Criteria
localhost:8888
. Ensure that everything still works