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
functionstateReducer(state,actionAndChanges){const{ type, changes }=actionAndChanges;// Doesn't log when a user has focused on the input and pressed enterconsole.log(actionAndChanges);returnchanges;}
What you did:
I clicked on the input and typed hi
I pressed enter
What happened:
It didn't log actionAndChanges variable
Should the state of the component change once you pass enter? If not, then stateReducer should not get called. Before #1218 it was broken, that's why you got that called.
downshift
version:6.1.0
node
version:14.2.0
yarn
version:1.22.10
Relevant code or config
What you did:
hi
enter
What happened:
It didn't log
actionAndChanges
variableReproduction repository:
https://codesandbox.io/s/usecombobox-inputkeydownenter-action-not-triggering-when-focus-is-on-the-input-field-lrtmr?file=/src/App.js
Problem description:
The problem is the same as here #1114 but on version
6.1.0
. On version6.0.4
works correctly.The text was updated successfully, but these errors were encountered: