Flourish3 opened a new issue, #43717:
URL: https://github.com/apache/superset/issues/43717

   ### Bug description
   
   Editing the **Default Value** field of a Select native filter can clear all 
existing selections
   when a user starts typing a new value. The **Filter has default value** 
checkbox remains checked,
   but the field beneath it becomes empty and shows a required-value error.
   
   ### Steps to reproduce
   
   1. Open a dashboard in edit mode.
   2. In the filter bar, open the settings menu and select **Add or edit 
filters and controls**.
   3. Select a Value / Select native filter with **Can select multiple values** 
enabled.
   4. Enable **Filter has default value**. This reveals the required **Default 
Value** field.
   5. Select and save two or more values in the **Default Value** field.
   6. Reopen **Add or edit filters and controls** and select the same filter.
   7. Click the **Default Value** picker and start typing another value.
   8. Observe that the prior selections disappear while **Filter has default 
value** remains checked.
   
   ### Expected behavior
   
   Existing default selections remain visible while searching or typing a new 
value. Selecting the
   new value should add it to the existing selection; clearing a value should 
require an explicit
   remove or clear action.
   
   ### Actual behavior
   
   Starting to type in the **Default Value** picker clears all previously 
selected values. The
   **Filter has default value** checkbox remains checked, so the empty required 
field is marked with
   the **Value is required** error.
   
   ### Screenshots/recordings
   
   
https://github.com/user-attachments/assets/fbbbd618-3380-4310-baf8-000655c9897a
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.12
   
   ### Node version
   
   18 or greater
   
   ### Browser
   
   Firefox
   
   ### Additional context
   
   The issue reproduces on current `master`, which includes the fix from PR 
#40984.
   
   Related issue #43347 describes typed or pasted created values outside the 
first loaded option
   page flashing and clearing. PR #40984 addressed that case by retaining 
created selected values in
   `SelectFilterPlugin`. This report concerns the broader behavior where 
existing selections disappear
   when typing begins, including values already present in the loaded options.
   
   The affected flow is the native filter configuration modal's **Default 
Value** picker, not the
   runtime dashboard filter bar.
   
   ### Checklist
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [x] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [ ] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to