Created
December 4, 2024 15:10
-
-
Save johnlindquist/c76d55ea29a44f1ed92fafdfb90c245a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Name: Testing Prevent Submit | |
import "@johnlindquist/kit"; | |
await arg( | |
{ | |
placeholder: "Prevent Submit", | |
enter: "Speak", | |
onSubmit: (input, state) => { | |
say(state.focused.value); | |
return preventSubmit; | |
}, | |
}, | |
["one", "two", "three"] | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment