Skip to content

Commit 283f7c2

Browse files
backwards compatibility
1 parent 84ffb80 commit 283f7c2

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/App/partials/Header/partials/Searchable/Searchable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ export default class Searchable extends React.Component {
4141

4242
}
4343

44-
UNSAFE_componentWillMount() {
44+
componentWillMount() {
4545
this.calculateSize( this.props );
4646
}
4747

48-
UNSAFE_componentWillReceiveProps( nextProps ) {
48+
componentWillReceiveProps( nextProps ) {
4949

5050
if( nextProps.settings.multiple && ( this.props.queryString !== nextProps.queryString || this.props.selected.length !== nextProps.selected.length ) || this.props.settings.placeholder.length !== nextProps.settings.placeholder.length ) {
5151
this.calculateSize( nextProps );

src/components/Selectrix.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ export default class Selectrix extends React.Component {
2727
} )
2828
}
2929

30-
UNSAFE_componentWillMount() {
30+
componentWillMount() {
3131
this.props.setupInstance( this.props );
3232
}
3333

34-
UNSAFE_componentWillReceiveProps( nextProps ) {
34+
componentWillReceiveProps( nextProps ) {
3535
this.props.updateInstance( nextProps );
3636
}
3737

0 commit comments

Comments
 (0)