clog icon indicating copy to clipboard operation
clog copied to clipboard

Unexpected behavior with (setf (checkedp ...))

Open aykaramba opened this issue 11 months ago • 0 comments

PROBLEM DEFINITION: (Paraphrased via @infinae) This looks to be a bug. (setf (checkedp obj) value) changes the attribute of the element, see clog-form.lisp:L694 It probably should be changing the value of the element property instead. According to: - checked and HTMLInputElement.checked changing the attribute doesn't constitute changing the state of the checkbox. The presence of the attribute indicates the default checked state only on page load, and the attribute proxy is the 'checkedDefault' property not 'checked' as the code expects.

DETAILS CAN BE FOUND IN THIS DISCUSSION THREAD: https://github.com/rabbibotton/clog/discussions/403

REFERENCE REPO OF TEST: (Also documented in reference thread): https://github.com/aykaramba/zzz01

SUMMARY: Opening up ticket as I am not yet good enough to create a patch for this type of issue. If there are any questions or concerns, let me know. I would be happy to help.

aykaramba avatar Jan 02 '25 08:01 aykaramba