Skip to content
Advertisement

Tag: binding

vue js disable input if value hasn’t changed

I have an input with an initial value: However the disabled binding gives an error: Cannot read property defaultValue of undefined. Best way to do this without spamming vm.data too much? Answer The error: Cannot read property defaultValue of undefined Is because the ref is not available so soon: An important note about the ref registration timing: because the refs

Advertisement