For input value loss #2053
Unanswered
wangshiliang888
asked this question in
Q&A
Replies: 1 comment
-
Hi @wangshiliang888 My understanding is that what you're trying to do is very specific to React and isn't done in Solid (and most other frameworks). |
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
-
const selectedInput = () => {
const [value, setValue] = createSignal("123456");
return (
{(item, i) => {
return (
{item.title} [{item.price}] {item.id} x
<input type="number" name={
products-${i()}-pk
} value={value()} /><input type="text" name={
products-${i()}-title
} value={value()} /><input type="number" name={
products-${i()}-price
} value={value()} />);
}}
);
};
The value is lost after rendering the above code to HTML
Beta Was this translation helpful? Give feedback.
All reactions