* 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
()
| 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. |
no outgoing calls
no test coverage detected