You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(PrimeFaces.widget.InputNumber){PrimeFaces.widget.InputNumber.prototype.init=function(cfg){PrimeFaces.widget.BaseWidget.prototype.init.call(this,cfg);this.input=$(this.jqId+'_input');this.hiddenInput=$(this.jqId+'_hinput');this.plugOptArray=cfg.pluginOptions;this.valueToRender=cfg.valueToRender;this.disabled=cfg.disabled;// GitHub #8125 minValue>0 shows js warning and quirky behaviorif(this.cfg.minimumValue>0.0000001||this.cfg.maximumValue<0){this.cfg.overrideMinMaxLimits='invalid';}//bind events if not disabledif(this.disabled){this.input.attr("disabled","disabled");this.input.addClass("ui-state-disabled");this.hiddenInput.attr("disabled","disabled");}//Visual effectsPrimeFaces.skinInput(this.input);this.wrapEvents();this.bindInputEvents();this.autonumeric=newAutoNumeric(this.jqId+'_input',this.cfg);if(this.valueToRender!==""){//set the value to the input the plugin will format it.this.autonumeric.set(this.valueToRender);// GitHub #6940 blur firing too many change eventsthis.autonumeric.rawValueOnFocus=this.valueToRender;}this.setValueToHiddenInput(this.getValue());//pfs metadatathis.input.data(PrimeFaces.CLIENT_ID_DATA,this.id);this.hiddenInput.data(PrimeFaces.CLIENT_ID_DATA,this.id);}};
Originally fixed in #8125
inputNumber is still broken if minValue is a decimal between 0 and 1, just try this to see:
I think that here:
primefaces/primefaces/src/main/resources/META-INF/resources/primefaces/inputnumber/1-inputnumber.js
Lines 42 to 45 in e8d3e29
the if condition should be:
cc @NicolaIsotta
The text was updated successfully, but these errors were encountered: