mirror of
https://github.com/flarum/framework.git
synced 2024-11-22 12:48:28 +08:00
fix: don't fire deprecation warnings for Mithril-originating action (#3236)
* fix: don't fire deprecation warnings for Mithril-originating actions * Add comment
This commit is contained in:
parent
4b25b90b48
commit
94f9e7f9de
|
@ -76,7 +76,9 @@ export default class Search<T extends SearchAttrs = SearchAttrs> extends Compone
|
|||
return this.searchState;
|
||||
}
|
||||
protected set state(state: SearchState) {
|
||||
fireDeprecationWarning('`state` property of the Search component is deprecated', '3212');
|
||||
// Workaround to prevent triggering deprecation warnings due to Mithril
|
||||
// setting state to undefined when creating components
|
||||
state !== undefined && fireDeprecationWarning('`state` property of the Search component is deprecated', '3212');
|
||||
this.searchState = state;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user