Merge pull request #63 from engblom/disabledp-fix

Fix problem with disabledp
This commit is contained in:
David Botton 2021-05-10 12:07:57 -04:00 committed by GitHub
commit 963ef3091b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -166,7 +166,9 @@ CLOG-OBJ"))
(:documentation "Set editable VALUE for CLOG-BUTTON"))
(defmethod set-disabledp ((obj clog-button) value)
(setf (property obj "disabled") (p-true-js value)))
(if value
(setf (property obj "disabled") (p-true-js value))
(remove-attribute obj "disabled")))
(defsetf disabledp set-editable)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;