-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
Bug Description
When using data validation with a list/dropdown type, cells that contain valid pre-filled values (matching the dropdown options) incorrectly show an "Invalid" notification. Empty cells with allowBlank: true do NOT show the error — only cells with valid values do.
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 A.
Steps to Reproduce
- Open the reproduction HTML file in Chrome
- Column A has dropdown validation with options:
["Draft", "Submitted", "Approved"],allowBlank: true - Cells A2, A3, A4 are pre-filled with "Draft", "Submitted", "Approved" (all valid options)
- Hover over cells A2, A3, A4 — they show "Invalid" notification
- Cells A5 and A6 are empty — they correctly do NOT show "Invalid"
Expected Behavior
Cells with values that match the dropdown list options should be treated as valid and should NOT show an "Invalid" notification.
Actual Behavior
Cells with valid pre-filled values show "Invalid" notification. Only empty cells are treated as valid.
Environment
- Univer version: 0.15.5
- Browser: Chrome (latest)
- OS: Windows 11
This is a resubmission of #6592 which was closed for lacking minimal reproduction.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels