Hi everybody,
I’ve found a possible bug in the jqxinput component. I’m calling this:
componentDidMount() {
this.input.on('change', (event) => {
console.log('change here...');
});
this.input.on('select', (event) => {
console.log('select here...');
});
}
inputRefBuilder = (ref) => {
this.input = ref;
}
render () {
...
return ( <div>
<JqxInput ref={this.inputRefBuilder} width={250} height={23} minLength={1} placeHolder={'Hey...'}/>}
</div>);
...
}
Those events don’t work as expected for me. They do nothing at all, except if I loose the focus on the JqxInput, then it’ll trigger the change event printing for console the message twice. So, the only variation I made here from the example is the ref, I’m using a ref builder function as recommended for the React official documentation. My question is: am I correct and this is a bug, or what am I missing here?
My best regards