Replies: 1 comment
-
It seems there is something wrong with your ui-kit components implementation since the code snippet below works as expected import { useState } from 'react';
import { Stack } from 'styled-system/jsx';
export const App = () => {
const [val, setVal] = useState('');
return (
<>
<Stack>
<label htmlFor="test-id">test</label>
<input type="text" id="test-id" value={val} onChange={e => setVal(e.target.value)}/>
</Stack>
</>
);
}; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone
What happened:
When using the
Input
component as a Controlled input the value changes, the cursor unfocuses from the input field.What you expected to happen:
The cursor should remain focused on the input field even when the value changes.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
2024-04-07.2.23.10.mov
Beta Was this translation helpful? Give feedback.
All reactions