-
Notifications
You must be signed in to change notification settings - Fork 32
dropdown: enable mutliple selection by default #320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
jrcastro2
commented
Dec 4, 2025
- Adds support and default implementation for multiple selection
- closes 1 - Enhance e-mail notifications CERNDocumentServer/cds-rdm#628
* Adds support and default implementation for multiple selection * closes CERNDocumentServer/cds-rdm#628
7d88453 to
12760f0
Compare
| }; | ||
|
|
||
| componentDidUpdate(prevProps) { | ||
| if (prevProps.options !== this.props.options) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please fix these eslint warnings
| import { FeedbackLabel } from "../forms/FeedbackLabel"; | ||
|
|
||
| export class SelectField extends Component { | ||
| constructor(props) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure I understand why we need to add state management for this component, could you explain me?
| } = cmpProps; | ||
| const _defaultValue = multiple ? [] : ""; | ||
| const value = getIn(values, fieldPath, defaultValue || _defaultValue); | ||
| console.log("defaultValue:", defaultValue); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| console.log("defaultValue:", defaultValue); |
| console.log("SelectField fieldPath:", fieldPath); | ||
| console.log("SelectField value:", value); | ||
| console.log("SelectField options:", dropdownOptions); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| console.log("SelectField fieldPath:", fieldPath); | |
| console.log("SelectField value:", value); | |
| console.log("SelectField options:", dropdownOptions); |