Closed justinbmeyer closed 5 years ago
<button on:click='this.todo.disabled = false'>allow</button>
This seems to be trying to set this.disabled incorrectly.
this.disabled
Component.extend({ tag: "todo-create", view: ` <div class="form-group"> <label>Name</label> <input class="form-control" on:input:value:bind='this.todo.name'/> </div> <button on:click='this.todo.disabled = false'>allow</button> {{this.todo.disabled}} <button disabled:from="todo.disabled" class="btn btn-primary"> {{# if(this.todo.isSaving()) }} Creating .... {{ else }} Create Todo {{/if}} </button> `, ViewModel: { todo: { default(){ return new DefineMap({disabled: true}) } } } });
I can not reproduce the issue in this codepen , could it be fixed?
Thanks @cherifGsoul, this looks fixed as of can@5.21.5
<button on:click='this.todo.disabled = false'>allow</button>
This seems to be trying to set
this.disabled
incorrectly.