Pfe-autocomplete is disabled by default - when should we disable the search button?
I had an issue using
- this could be the case if the app wants to let the server-side handle validation
- or if the search input is not required in a form field
The advice @bennypowers gave for now was to use a separate
Opening this to discuss the possibility of loosening up this restriction.
- One approach we could take might be to retain the existing behavior as long at the search input is required, or if there is a required attribute on the pfe-autocomplete element (the latter in cases where there is no form)
- Another way we could go (per Daniel's suggestion) would be to add a new boolean attribute, say allow-empty as a straw example, which would deactivate the disabling behaviour.
- A third approach would be to remove the button-text attribute altogether in favour of a slotted button or pfe-button element.
What say you all? Pinging @Marionne Patel , @Ronnie McBride for UX perspective, @Em Nouveau and @Steven Spriggs for Dev perspective, and of course all the rest of you lovely humans
@bennypowers also mentioned that the button-text feature is broken altogether in 2.0 branch