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

Spaces don't affect the Input flex box #77

Open
wrangelvid opened this issue Jun 6, 2024 · 0 comments
Open

Spaces don't affect the Input flex box #77

wrangelvid opened this issue Jun 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@wrangelvid
Copy link
Contributor

An Input component does only flex when characters are typed but not with trailing spaces. Here is an example.

When focussing on the input and moving the curser beyond the Oh Oh., we can see that it leaves the border. Try adding more spaces and you will see the cursor wanders off to a journey far far beyond it's borders :)

        <Input
          borderWidth={2}
          borderRadius={6}
          textAlign="left"
          verticalAlign="top"
          focus={{ borderColor: 'orange' }}
          borderColor="black"
          value={text}
          defaultValue="Oh Oh.   "
          onValueChange={setText}
          minWidth={20}
        />
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