@syncfusion/ej2-inputs 35.1.42 → 35.2.12
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.
- package/dist/ej2-inputs.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js.map +1 -1
- package/dist/es6/ej2-inputs.es2015.js +14 -1
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +14 -1
- package/dist/es6/ej2-inputs.es5.js.map +1 -1
- package/dist/global/ej2-inputs.min.js +2 -2
- package/dist/global/ej2-inputs.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +5 -5
- package/src/input/input.js +8 -1
- package/src/numerictextbox/numerictextbox.js +6 -0
|
@@ -44,6 +44,10 @@ var Input;
|
|
|
44
44
|
const observeElementDetach = (element, container, resizeHandler) => {
|
|
45
45
|
const parent = container.parentElement;
|
|
46
46
|
if (!parent) {
|
|
47
|
+
if (!isNullOrUndefined(resizeHandlers)) {
|
|
48
|
+
window.removeEventListener('resize', resizeHandler);
|
|
49
|
+
resizeHandlers.delete(element);
|
|
50
|
+
}
|
|
47
51
|
return;
|
|
48
52
|
}
|
|
49
53
|
const observer = new MutationObserver(() => {
|
|
@@ -485,6 +489,8 @@ var Input;
|
|
|
485
489
|
if (!isNullOrUndefined(resizeHandlers)) {
|
|
486
490
|
const resizeHandler = resizeHandlers.get(args.element);
|
|
487
491
|
if (resizeHandler) {
|
|
492
|
+
window.removeEventListener('resize', resizeHandler);
|
|
493
|
+
resizeHandlers.delete(args.element);
|
|
488
494
|
const observer = mutationObservers.get(args.element);
|
|
489
495
|
if (observer) {
|
|
490
496
|
observer.disconnect();
|
|
@@ -883,7 +889,8 @@ var Input;
|
|
|
883
889
|
if (!isNullOrUndefined(container) && container.classList.contains(CLASSNAMES.FLOATINPUT)) {
|
|
884
890
|
const inputEle = container.querySelector('textarea') ? container.querySelector('textarea') :
|
|
885
891
|
container.querySelector('input');
|
|
886
|
-
const
|
|
892
|
+
const floatTextElement = container.querySelector('.' + CLASSNAMES.FLOATTEXT);
|
|
893
|
+
const placeholder = floatTextElement ? floatTextElement.textContent : '';
|
|
887
894
|
const clearButton = container.querySelector('.e-clear-icon') !== null;
|
|
888
895
|
detach(container.querySelector('.' + CLASSNAMES.FLOATLINE));
|
|
889
896
|
detach(container.querySelector('.' + CLASSNAMES.FLOATTEXT));
|
|
@@ -1632,12 +1639,18 @@ let NumericTextBox = class NumericTextBox extends Component {
|
|
|
1632
1639
|
'title': this.l10n.getConstant('decrementTitle'),
|
|
1633
1640
|
'aria-label': this.l10n.getConstant('decrementTitle')
|
|
1634
1641
|
});
|
|
1642
|
+
if (this.spinDown.getAttribute('aria-label')) {
|
|
1643
|
+
this.spinDown.setAttribute('role', 'button');
|
|
1644
|
+
}
|
|
1635
1645
|
}
|
|
1636
1646
|
if (!isNullOrUndefined(this.spinUp)) {
|
|
1637
1647
|
attributes(this.spinUp, {
|
|
1638
1648
|
'title': this.l10n.getConstant('incrementTitle'),
|
|
1639
1649
|
'aria-label': this.l10n.getConstant('incrementTitle')
|
|
1640
1650
|
});
|
|
1651
|
+
if (this.spinUp.getAttribute('aria-label')) {
|
|
1652
|
+
this.spinUp.setAttribute('role', 'button');
|
|
1653
|
+
}
|
|
1641
1654
|
}
|
|
1642
1655
|
}
|
|
1643
1656
|
wireEvents() {
|