Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/AutoResizeInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, { Component } from 'react';
export default class AutoResizeInput extends Component {
state = {};

componentWillMount() {
UNSAFE_componentWillMount() {
this.setInputSize(this.props.value);
}

Expand All @@ -15,7 +15,7 @@ export default class AutoResizeInput extends Component {
}
}

componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
this.setInputSize(nextProps.value);
}

Expand Down
4 changes: 2 additions & 2 deletions src/DropdownMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { renderComponent } from './utils';
import Options from './Options';

export default class DropdownMenu extends Component {
componentWillMount() {
UNSAFE_componentWillMount() {
this.validateAndClose(this.props.options);
}

componentWillReceiveProps({ options }) {
UNSAFE_componentWillReceiveProps({ options }) {
this.validateAndClose(options);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Options.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Option from './Option';
import { getOptionIndex, isOptGroup } from './utils';

export default class Options extends Component {
componentWillReceiveProps({ options, highlightedOption }) {
UNSAFE_componentWillReceiveProps({ options, highlightedOption }) {
this.scrollTo({ options, highlightedOption });
}

Expand Down
2 changes: 1 addition & 1 deletion src/PowerSelectMultiple/SelectTrigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default class SelectTrigger extends Component {
value: '',
};

componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
let value = nextProps.searchTerm !== null ? nextProps.searchTerm : '';
this.setState({
value,
Expand Down
4 changes: 2 additions & 2 deletions src/PowerSelectMultiple/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import MultiSelectTrigger from './SelectTrigger';
export default class PowerSelectMultiple extends Component {
state = {};

componentWillMount() {
UNSAFE_componentWillMount() {
this.filterOptions(this.props.options, this.props.selected);
}

componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
this.filterOptions(nextProps.options, nextProps.selected);
}

Expand Down
4 changes: 2 additions & 2 deletions src/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ export default class Select extends Component {
handleDocumentClick: ::this.handleDocumentClick,
};

componentWillMount() {
UNSAFE_componentWillMount() {
this.flattenOptions(this.props.options);
}

componentWillReceiveProps({ options }) {
UNSAFE_componentWillReceiveProps({ options }) {
this.flattenOptions(options);
if (this.props.options !== options) {
this.setState({
Expand Down
4 changes: 2 additions & 2 deletions src/TypeAhead/SelectTrigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import AutoResizeInput from '../AutoResizeInput';
export default class SelectTrigger extends Component {
state = {};

componentWillMount() {
UNSAFE_componentWillMount() {
let value = this.getValueFromSelectedOption(this.props);
this.setState({ value });
}

componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
let value =
nextProps.searchTerm !== null
? nextProps.searchTerm
Expand Down