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
Hi! So actually `textinput` contains a [`Validate`](https://pkg.go.dev/github.com/charmbracelet/bubbles@v0.18.0/textinput#Model) property which can be used to restrict input to numbers only. The [credit card example](https://github.com/charmbracelet/bubbletea/tree/master/examples/credit-card-form) illustrates how to do this.
This does not seem to be working as of v0.20.0. And I don't see a KeyMsg.Type for keyboard numbers to intercept the messages with non-numerical inputs.
Is there a way to easily circumvent this issue?
The text was updated successfully, but these errors were encountered:
Originally posted by @meowgorithm in #481 (comment)
This does not seem to be working as of v0.20.0. And I don't see a KeyMsg.Type for keyboard numbers to intercept the messages with non-numerical inputs.
Is there a way to easily circumvent this issue?
The text was updated successfully, but these errors were encountered: