uncheck radio if clicked twice

This commit is contained in:
Adrien MALINGREY 2023-10-17 23:33:39 +02:00
parent 959deb5e14
commit 2e5125c298

View File

@ -310,9 +310,15 @@ function onmouseleave(event) {
}
function insert(radio) {
if (radio.value && valueToInsert == radio.value) {
radio.blur()
insertRadio0.checked = true
insert(0)
} else {
valueToInsert = radio.value
grid.style.cursor = valueToInsert ? "copy" : "text"
highlight()
}
}
function undo() {