-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
Bug Description
When using date data validation with allowBlank set to true, empty cells incorrectly show an "Invalid" notification. The allowBlank setting is not being respected for date validation type.
Minimal Reproduction
https://gist.github.com/taweijm/bf5089eec89814a3f77677b37be6d87f
Save the HTML file and open it directly in a browser (no build step needed). Look at Column B.
Steps to Reproduce
- Open the reproduction HTML file in Chrome
- Column B has date validation with
requireDateBetween(1900-01-01, 2099-12-31)andallowBlank: true - Cells B2 and B3 have valid dates ("2025-06-15", "2025-12-01")
- Cells B4, B5, B6 are empty
- Look at empty cells B4, B5, B6 — they show "Invalid" notification despite
allowBlankbeing enabled
Expected Behavior
Empty cells should be treated as valid when allowBlank is set to true.
Actual Behavior
Empty cells show "Invalid" notification even though allowBlank is enabled.
Environment
- Univer version: 0.15.5
- Browser: Chrome (latest)
- OS: Windows 11
This is a resubmission of #6593 which was closed for lacking minimal reproduction.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels