Make radio checkboxes work in eww

* lisp/net/eww.el (eww-toggle-checkbox): Actually update the
:checked values in the form.
This commit is contained in:
Lars Ingebrigtsen 2021-03-04 12:11:08 +01:00
parent ba33089d50
commit 7b99fc0069

View file

@ -1595,9 +1595,9 @@ See URL `https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input'.")
(goto-char (car elem))
(if (not (eq (cdr elem) input))
(progn
(plist-put input :checked nil)
(plist-put (cdr elem) :checked nil)
(eww-update-field eww-form-checkbox-symbol))
(plist-put input :checked t)
(plist-put (cdr elem) :checked t)
(eww-update-field eww-form-checkbox-selected-symbol)))))
(forward-char 1)))))