Love this component. Currently not compatible with Vaadin 14.2/15/16. Chnag

Love this component. However V2.0.3 is currently not compatible with Vaadin 14.2/15/16. Changed following code to get it to work:

    public CustomMediaQuery(Consumer<Boolean> action) {
        this.action = action;
        // getElement().addSynchronizedProperty("querymatches");
        // getElement().addSynchronizedPropertyEvent("querymatches");
        getElement().setProperty("querymatches", "");
        getElement().addPropertyChangeListener("querymatches", e->
        {
            action.accept(getModel().getQuerymatches());
        });
    }

Hi,

Thank you for your feedback.

I’ve updated the component to version 3.0.0. It should work with Vaadin 14.2.0+.

(I think the version 2.0.3 was not working in 15+, but 14.2.0 should be ok)