piyushraj001 opened a new pull request, #44357:
URL: https://github.com/apache/superset/pull/44357

   ### SUMMARY
   
   The `optionRender` prop in both `Select` and `AsyncSelect` was wrapping 
option labels in antd's `<Space>` component (a flex container). This broke the 
antd native overflow model for `.ant-select-item-option-content`, causing long 
text labels to be clipped/cut off in dropdown filters (e.g., game names in a 
Games filter).
   
   Removing the unnecessary `<Space>` wrapper allows antd to handle option 
label rendering natively, restoring the correct `text-overflow` behavior that 
existed in 6.0.
   
   Fixes #44350
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   
   **Before**
   
   <img width="1491" height="644" 
alt="653060642-5a153a77-feef-48d5-a319-ab0fc4edebed" 
src="https://github.com/user-attachments/assets/065b272b-ca77-434a-801c-e1d3faddb6be";
 />
   
   **After**
   
   <img width="1226" height="499" alt="Screenshot 2026-09-17 at 1 24 36 AM" 
src="https://github.com/user-attachments/assets/ea7478bb-d148-4781-82ee-6e7fcc9ae218";
 />
   
   
   ### TESTING INSTRUCTIONS
   
   1. Open a dashboard with a native filter that has long option values.
   2. Click the filter dropdown.
   3. Verify that long option names are no longer cut off.
   4. Run the following unit tests:
   
   ```bash
   npx jest 
--testPathPatterns="packages/superset-ui-core/src/components/Select/Select.test"
 --watchAll=false
   npx jest 
--testPathPatterns="packages/superset-ui-core/src/components/Select/AsyncSelect.test"
 --watchAll=false
   ```
   
   ### ADDITIONAL INFORMATION
   - [x] Has associated issue: Fixes #44350
   - [ ] Required feature flags:
   - [x] Changes UI
   - [ ] Includes DB Migration
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API


-- 
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