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
Cutting text (Ctrl+X) from an ordinary readonly input element does not remove the text.
With Cleave however, selecting the entire content of a readonly input element and pressing Ctrl+X removes the text.
Please check the readonly property of the element before calling this.onInput(''); in function onCut:
onCut: function (e) {
if (!Cleave.Util.checkFullSelection(this.element.value)) return;
this.copyClipboardData(e);
if (!this.element.readonly) {
this.onInput('');
}
},
The text was updated successfully, but these errors were encountered:
kalmancsaba
added a commit
to kalmancsaba/cleave.js
that referenced
this issue
Dec 4, 2020
Cutting text (Ctrl+X) from an ordinary readonly
input
element does not remove the text.With Cleave however, selecting the entire content of a readonly
input
element and pressing Ctrl+X removes the text.Please check the readonly property of the element before calling
this.onInput('');
in functiononCut
:The text was updated successfully, but these errors were encountered: