shadcn-zod-formkit 3.11.1 → 3.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -12112,7 +12112,12 @@ var useKeyboardStore = zustand.create((set, get) => ({
12112
12112
  set({ children });
12113
12113
  },
12114
12114
  setOnEnter(onEnter) {
12115
- set({ onEnter });
12115
+ set({
12116
+ onEnter: () => {
12117
+ onEnter?.();
12118
+ if (get().isCloseOnEnter) get().reset();
12119
+ }
12120
+ });
12116
12121
  },
12117
12122
  setCurrentInputField(inputField) {
12118
12123
  set({ currentInputField: inputField, isInputRequired: inputField ? true : false });