I encountered a bug while trying to extend the multiselect using protoui.
Here is a code that you can use to reproduce it:
https://snippet.webix.com/3ico4aii
// to reproduce the bug select both A and B, while they are both selected try to unselect one
// the new widget won’t unselect it, and will add a duplicated item instead
webix.protoUI({
name: "Foo",
defaults: {
options:["A", "B"],
}
},webix.ui.multiselect);
webix.ui({
view: "Foo"
});
I also noted that if I define the options inside webix.ui (and not in the defaults) the code work as it should.