1. Stephen Compall
  2. weblocks-dev

Commits

Leslie P. Polzer  committed 167f664

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

  • Participants
  • Parent commits c9bd02e
  • Branches default

Comments (0)

Files changed (1)

File contrib/lpolzer/form-widget.lisp

View file
 
 (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