jQWidgets Forums

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts

  • sk8027
    Participant

    for angular 9 i changed in this file and it resolved. node_modules\jqwidgets-ng\__ivy_ngcc__\fesm2015\jqwidgets-ng-jqxinput.js

        writeValue(value) {
            if (this.widgetObject && value) {
                if (this.initialLoad) {
                    setTimeout(_ => this.host.jqxInput('val', value));
                    this.initialLoad = false;
                }
                this.host.jqxInput('val', value);
            } <strong>else { // this else added by Syntaxmatic Technologies
    		   this.host.jqxInput('val', '');
    	   }</strong>
        }

    sk8027
    Participant

    we are facing this issue since ver 6 and I fixed in ts file of input. but we didn’t get any solution from the vendor. issue is if there is null value then code is not handling the setting of value to jqxInput. so we added else part in code. now in angular 9 we are using modules so finding the place where this code is written as it is in multiple places for every component. earlier we were using jqxwidget-ts
    writeValue(value) {
    if (this.widgetObject && value) {
    if (this.initialLoad) {
    setTimeout(_ => this.host.jqxInput(‘val’, value));
    this.initialLoad = false;
    }
    this.host.jqxInput(‘val’, value);
    } else { // this else added by Syntaxmatic Technologies
    this.host.jqxInput(‘val’, ”);
    }
    }

Viewing 2 posts - 1 through 2 (of 2 total)