If you set isFullWidth to false, the TextField is shortened but not the Paper
If you try to hit 'Enter' to search or use this SearchBar in a form, you will get this error:
Blocked form submission to '' because the form's frame is sandboxed and the 'allow-forms' permission is not set.
This SearchBar was built as a dynamic filter- it was not intended to be "submitted." Removing component="form" from the Paper element would probably solve this issue.
Describe the bug
isFullWidth
to false, theTextField
is shortened but not thePaper
SearchBar
in a form, you will get this error:Blocked form submission to '' because the form's frame is sandboxed and the 'allow-forms' permission is not set.
ThisSearchBar
was built as a dynamic filter- it was not intended to be "submitted." Removingcomponent="form"
from thePaper
element would probably solve this issue.To Reproduce Steps to reproduce 1)
isFullWidth
:<SearchBar isFullWidth={false} onSearch={() => logger.info('searching')} />
SearchBar
is not completely shortenedSteps to reproduce 2) Form submission error
<SearchBar onSearch={() => logger.info('searching')} />
SearchBar
, will log above error in console.Expected behavior
isFullWidth
or they provideisFullWidth={false}
, theTextField
andPaper
have matching widths.component="form"
from thePaper
element so that theSearchBar
does not cause the form submit errorSearchBar
to something like:SearchFilter
,DynamicFilter
,FilterBar
??