Skip to content

fix: add button type attribute to affix buttons#77

Merged
benja merged 2 commits intofabric-ds:mainfrom
vsandvold:affix-button-type
Jan 17, 2022
Merged

fix: add button type attribute to affix buttons#77
benja merged 2 commits intofabric-ds:mainfrom
vsandvold:affix-button-type

Conversation

@vsandvold
Copy link
Contributor

This PR adds button type attributes to Affix buttons, specifically type="submit" for search, and type="reset" for clear. This prevents the clear button from submitting the enclosing form of the textfield.

I believe this code could be improved by extracting a separate ButtonAffix component as suggested in #76 .

@benja benja merged commit 3b6fade into fabric-ds:main Jan 17, 2022
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.

2 participants

Comments