ps-toolkit-ui 1.6.26 → 1.6.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5311,9 +5311,6 @@
5311
5311
  return;
5312
5312
  }
5313
5313
  this.inp.value = null;
5314
- // if (this.inp.onChange){
5315
- // this.inp.onChange(this.inp, false);
5316
- // }
5317
5314
  if (this.inp.type === exports.InputType.SelectSearch) {
5318
5315
  this.setOptions();
5319
5316
  }
@@ -5887,25 +5884,14 @@
5887
5884
  };
5888
5885
  if (this.inp.type === exports.InputType.BarcodeReader) {
5889
5886
  this.inp.button = 'blue';
5890
- // const fn = this.inp.name + 'SetBarcodeScanValue';
5891
- // this.inp.onClickButton = () => {
5892
- // try {
5893
- // // @ts-ignore
5894
- // window.JSInterface.startBarcodeScan(fn);
5895
- // } catch (e) {
5896
- // }
5897
- // };
5898
- // try {
5899
- // // @ts-ignore
5900
- // window[fn] = (s) => {
5901
- // alert(s);
5902
- // this.inp.setValue(s, false);
5903
- // setTimeout(() => {
5904
- // this.onFocusIn();
5905
- // }, 100);
5906
- // };
5907
- // } catch (e) {
5908
- // }
5887
+ this.inp.onClickButton = function () {
5888
+ try {
5889
+ // @ts-ignore
5890
+ window.JSInterface.startBarcodeScan('Barcode');
5891
+ }
5892
+ catch (e) {
5893
+ }
5894
+ };
5909
5895
  }
5910
5896
  };
5911
5897
  FormTextboxComponent.prototype.onFocusIn = function (changeIndex) {