Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using is_valid_character prop of rx.number_input throws an error #17

Open
abdullahkhalids opened this issue Nov 12, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@abdullahkhalids
Copy link

Describe the bug
Create a rx.number_input component, and add the prop is_valid_character="/^[Ee0-9+-.]$/". (here the default value, but any value fails). An error is thrown when anything is entered into it.

To Reproduce

  1. Compile this app
import reflex as rx

def index() -> rx.Component:
    return rx.number_input(is_valid_character='/^[Ee0-9+-.]$/')

app = rx.App()
app.add_page(index)
app.compile()
  1. Enter any character into the field, valid or invalid.

Expected behavior
The field should only accept correct input.

Screenshots
image

Specifics (please complete the following information):

  • Python Version: 3.10.12
  • Reflex Version: 0.3.2
  • OS: Debian testing
@masenf masenf added the bug Something isn't working label Nov 12, 2023
@Lendemor Lendemor transferred this issue from reflex-dev/reflex Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants