Bug: onSearchItemClick not triggered with MDI icon

From the webix source:

"webix_input_icon": function (e) {
        this.getInputNode().focus();
        if (this.config.clear !== "hover" && e.target && e.target.classList.contains(this.config.icon)) this.callEvent("onSearchIconClick", [e]);
}

When the config.icon is mdi mdi-close the classList gets matched to mdi mdi-close which it won’t find. It should split on space and check for all classes.

Hi @Christiaan

I can confirm the bug, thank you for reporting it!
As a quick workaround, it is possible to redefine the related click handler on a prototype level (here I just changed the problematic statement to className.includes):
https://snippet.webix.com/yv57y9xx

Thanks!