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
Thanks for the great plugin. It has been very useful. I have a use case where my async button runs a search. The search can be triggered when the user clicks on the async-button (the search button) or when the user presses enter on the input.
What's the best way to trigger the async button's action when the user presses enter on the input? Before I was using async-button both pressing enter on the input and clicking the search button called the same action.
Now that I'm using the async-button this won't work as pressing enter doesn't have a callback and doesn't put the button into a "pending" state.
Is the best practice here to manually set disableWhen to true when the user uses the enter key along with a separate action path that handles setting disableWhen back to false?
Thank you!
The text was updated successfully, but these errors were encountered:
Thanks for the great plugin. It has been very useful. I have a use case where my async button runs a search. The search can be triggered when the user clicks on the async-button (the search button) or when the user presses enter on the input.
What's the best way to trigger the async button's action when the user presses enter on the input? Before I was using async-button both pressing enter on the input and clicking the search button called the same action.
Now that I'm using the async-button this won't work as pressing enter doesn't have a callback and doesn't put the button into a "pending" state.
Is the best practice here to manually set
disableWhen
totrue
when the user uses the enter key along with a separate action path that handles settingdisableWhen
back tofalse
?Thank you!
The text was updated successfully, but these errors were encountered: