Select component does not bind
On creation, the binding on the MDSelect class does not work:
oncreate({ dom }) {
this.foo = new MDCSelect(dom.querySelector(`#${this.name}`));
}
While the dom
exists on the line before the binding, the binding fails with cannot read property querySelector of null
.
In the onchange function, again, the attr onChange
does not receive a value, while overwriting onchange
does receive a value.