error: ‘type’ attribute cannot be dynamic if input uses two-way binding
The reason type must be static with two-way binding is that the code Svelte generates is different for different kinds of input. For example, number and range inputs must have their values coerced to a number, some inputs need change event listeners instead of input events or vice versa, and so on. But you can … Read more