Skip to content

Conversation

@jrcastro2
Copy link
Contributor

* Adds support and default implementation for
  multiple selection
* closes CERNDocumentServer/cds-rdm#628
};

componentDidUpdate(prevProps) {
if (prevProps.options !== this.props.options) {
Copy link
Contributor

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) {
Copy link
Contributor

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
console.log("defaultValue:", defaultValue);

Comment on lines +115 to +117
console.log("SelectField fieldPath:", fieldPath);
console.log("SelectField value:", value);
console.log("SelectField options:", dropdownOptions);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
console.log("SelectField fieldPath:", fieldPath);
console.log("SelectField value:", value);
console.log("SelectField options:", dropdownOptions);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 - Enhance e-mail notifications

2 participants