Skip to content

Commit 8fb52c1

Browse files
committed
don't let the hidden template child cause validation to fail
1 parent d7821e8 commit 8fb52c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tw2/dynforms/widgets.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ class GrowingGridLayout(twf.GridLayout):
3131
@classmethod
3232
def post_define(cls):
3333
if hasattr(cls.child, 'children'):
34+
# don't let the hidden template child cause validation to fail
35+
cls.child.children[0].validator = None
3436
if not hasattr(cls.child.children, 'del'): # TBD: 'del' in ...
3537
cls.child = cls.child(children = list(cls.child.children) + [DeleteButton(id='del', label='')])
3638

0 commit comments

Comments
 (0)