I have a collection of select
boxes and input
fields in my Aurelia project and I need to disable one specific select box everytime a value changes on a specific input field. The problem is that everytime I change the value on the input field the disabled
state of the select box doesn't change.
I use the BindingEngine
to observe everytime an input field value changes. I have an array of booleans that represents the binding values that are bound to the disable.bind
attribute of each select box.
I would like to know how to change the disable.bind
state of a specific select box everytime the value changes in the input.
Expected behavior: if the input
field value is greater than 0 i enable the select
else i disable it.
I have a demo here: https://gist.run/?id=726eef81bb88e8a695d4ae5df6b2e679