Commits

Leslie P. Polzer  committed 167f664

contrib/lpolzer (form-widget): honor focusp slot.

  • Participants
  • Parent commits c9bd02e

Comments (0)

Files changed (1)

File contrib/lpolzer/form-widget.lisp

 
 (defmethod render-widget-children :after ((widget form-widget) &rest args)
   (declare (ignore args))
-  (send-script
-    `((@ ($ ,(form-id-of widget)) focus-first-element))))
+  (when (focusp-of widget)
+    (send-script
+      `((@ ($ ,(form-id-of widget)) focus-first-element)))))
 
 
 (define-class field-widget-onchange-mixin () ; XXX not used yet