You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This SHOULD have allowed me to keep the search icon visible and allow the user to click it when they wanted to search without worrying about knowing to hit enter.
However, the setValue('') is the first line called in the cancel method regardless of whether or not we have custom functions.
I propose adding a new property cancelClearsText or something far less ridiculous than that. Then in the cancel method, check for this property before clearing the search text.
In the meantime, I'm just going to REset the search text after a cancel and will have to wrap the performSearch in a cancel handler
The text was updated successfully, but these errors were encountered:
@tazbill instead of a new property what if the check was for the onRequestSearch function and if that function existed then the search button wouldn't be replaced by the clear button.
This originally came from me trying to override the cancel functionality all together.
This SHOULD have allowed me to keep the search icon visible and allow the user to click it when they wanted to search without worrying about knowing to hit enter.
However, the
setValue('')
is the first line called in the cancel method regardless of whether or not we have custom functions.I propose adding a new property
cancelClearsText
or something far less ridiculous than that. Then in the cancel method, check for this property before clearing the search text.In the meantime, I'm just going to REset the search text after a cancel and will have to wrap the
performSearch
in a cancel handlerThe text was updated successfully, but these errors were encountered: