MCPcopy
hub / github.com/autoNumeric/autoNumeric / _setReadWrite

Method _setReadWrite

src/AutoNumeric.js:1536–1542  ·  view source on GitHub ↗

* Set the element to be read-write. * * @private

()

Source from the content-addressed store, hash-verified

1534 * @private
1535 */
1536 _setReadWrite() {
1537 if (this.isInputElement) {
1538 this.domElement.readOnly = false;
1539 } else {
1540 this.domElement.setAttribute('contenteditable', true);
1541 }
1542 }
1543
1544 /**
1545 * Add a watcher so that any external change to the AutoNumeric-managed element would be detected.

Callers 1

_setWritePermissionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected