()
| 4919 | input.select(); |
| 4920 | |
| 4921 | const commit = () => { |
| 4922 | el.text = input.value; |
| 4923 | node.removeChild(input); |
| 4924 | node.textContent = prevText; // renderElements will refresh anyway |
| 4925 | renderElements(); |
| 4926 | renderLayers(); |
| 4927 | updatePropsInputs(false); |
| 4928 | updateCode(); |
| 4929 | pushHistory(); |
| 4930 | }; |
| 4931 | const cancel = () => { |
| 4932 | node.removeChild(input); |
| 4933 | node.textContent = prevText; |
no test coverage detected