MCPcopy
hub / github.com/autoNumeric/autoNumeric / _setReadOnly

Method _setReadOnly

src/AutoNumeric.js:1523–1529  ·  view source on GitHub ↗

* Set the element to be read-only. * If the DOM element tag is not an `input`, then it `contenteditable` attribute is set to `false`. * * @private

()

Source from the content-addressed store, hash-verified

1521 * @private
1522 */
1523 _setReadOnly() {
1524 if (this.isInputElement) {
1525 this.domElement.readOnly = true;
1526 } else {
1527 this.domElement.setAttribute('contenteditable', false);
1528 }
1529 }
1530
1531 /**
1532 * Set the element to be read-write.

Callers 1

_setWritePermissionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected