Answer the question
In order to leave comments, you need to log in
How does value caching work in input?
The task was set to make it so that when you re-enter the same value, the old value drops out and you can select it.
I always thought that this is the default behavior of the input. The project uses PHP and Reactjs . I came across
the autoComplete attribute on the input, but why it didn’t help.
This is what the input itself looks like
<input
type="text"
placeholder="введите значение"
onChange={onChange}
value={value}
autoComplete="on"
/>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question