Skip to content

Commit

Permalink
reserve bottom space for error message (#3446)
Browse files Browse the repository at this point in the history
  • Loading branch information
falkoschindler committed Aug 6, 2024
1 parent 508e9e8 commit d405d0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nicegui/elements/mixins/validation_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def __init__(self, validation: Optional[Union[Callable[..., Optional[str]], Dict
self._auto_validation = True
self._error: Optional[str] = None
super().__init__(**kwargs)
self._props['error'] = False # NOTE: reserve bottom space for error message

@property
def error(self) -> Optional[str]:
Expand Down

0 comments on commit d405d0d

Please sign in to comment.