fix(frontend): show required marker for select and multiselect widgets#41735
fix(frontend): show required marker for select and multiselect widgets#41735Arbab1308 wants to merge 7 commits intoappsmithorg:releasefrom
Conversation
WalkthroughThe PR forwards the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Opened PR #41735 to fix this This reuses the existing required label behavior for select/multiselect |
|
@appsmith-bot |
2e0a3e0 to
4c9129d
Compare
|
/ok-to-test |
|
Could a maintainer please approve workflows for this fork PR so required checks can run? Thanks! |
There was a problem hiding this comment.
♻️ Duplicate comments (1)
app/client/src/widgets/MultiSelectWidget/widget/index.tsx (1)
566-567:⚠️ Potential issue | 🔴 CriticalDuplicate
isRequiredprop — please remove one.
isRequired={this.props.isRequired}is set twice onMultiSelectComponent. React will silently keep only the last occurrence, andeslint-plugin-react'sjsx-no-duplicate-propsrule will fail the lint step. As per coding guidelines, "Ensure code passes ESLint validation usingyarn run lint".🛠️ Proposed fix
dropdownStyle={{ zIndex: Layers.dropdownModalWidget, }} - isRequired={this.props.isRequired} isRequired={this.props.isRequired} isValid={this.props.isValid}🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@app/client/src/widgets/MultiSelectWidget/widget/index.tsx` around lines 566 - 567, Remove the duplicated prop on MultiSelectComponent: there are two identical isRequired={this.props.isRequired} props in the JSX (inside the render of the MultiSelectWidget component), so delete one occurrence so isRequired is only passed once; ensure no other duplicate props remain on MultiSelectComponent to satisfy jsx-no-duplicate-props linting.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Duplicate comments:
In `@app/client/src/widgets/MultiSelectWidget/widget/index.tsx`:
- Around line 566-567: Remove the duplicated prop on MultiSelectComponent: there
are two identical isRequired={this.props.isRequired} props in the JSX (inside
the render of the MultiSelectWidget component), so delete one occurrence so
isRequired is only passed once; ensure no other duplicate props remain on
MultiSelectComponent to satisfy jsx-no-duplicate-props linting.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 6980b87e-c8ae-4507-a371-013afd82769e
📒 Files selected for processing (1)
app/client/src/widgets/MultiSelectWidget/widget/index.tsx
|
/build-deploy-preview skip-tests=true |
|
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/24904467941. |
|
/ok-to-test |
|
Hey @sebastianiv21 — good catch. I’ve pushed an update removing the unrelated isDynamicHeightEnabled prop from the MultiSelect widget to keep the PR scoped to the required-marker fix. |
|
@sebastianiv21 is it all good to merger ?? also should i resolve the conversation ? |
|
@Arbab1308 We have to run the test suite and then it should be ready to merge |
|
/build-deploy-preview skip-tests=true |
|
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/25061271920. |
|
Deploy-Preview-URL: https://ce-41735.dp.appsmith.com |
okayy let me know if anything else is there |
@Arbab1308 You can test your changes here With the current changes, the asterisk is only showing for the Select widget |
|
This PR has not seen activitiy for a while. It will be closed in 7 days unless further activity is detected. |

Description
This PR fixes the bug where required Select widgets do not display the red
*required marker, even when the "Required" validation is enabled.What changed
isRequiredflag from the Select and MultiSelect widgets down to their label components.*for both Select and MultiSelect when Required is enabled.Testing
*appears next to the labels. Turning Required OFF hides the*.Fixes
Automation
/ok-to-test tags="@tag.All"
Summary by CodeRabbit