[common mobile] fixes for mobx ver 6
This commit is contained in:
parent
d3163b0be0
commit
bb6172015c
|
@ -4,7 +4,7 @@ import { Toggle } from 'framework7-react';
|
||||||
import { f7 } from 'framework7-react';
|
import { f7 } from 'framework7-react';
|
||||||
import { Dom7 } from 'framework7';
|
import { Dom7 } from 'framework7';
|
||||||
import { Device } from '../../../../common/mobile/utils/device';
|
import { Device } from '../../../../common/mobile/utils/device';
|
||||||
import { observable } from "mobx";
|
import { observable, runInAction } from "mobx";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import { useTranslation, withTranslation } from 'react-i18next';
|
import { useTranslation, withTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ class SearchSettingsView extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
onFindReplaceClick(action) {
|
onFindReplaceClick(action) {
|
||||||
searchOptions.usereplace = action == 'replace';
|
runInAction(() => searchOptions.usereplace = action == 'replace');
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
useReplace: searchOptions.usereplace
|
useReplace: searchOptions.usereplace
|
||||||
|
|
Loading…
Reference in a new issue