[common] Fix Bug 53181
This commit is contained in:
parent
8e10322155
commit
cd592d564b
|
@ -91,7 +91,6 @@ class SearchView extends Component {
|
||||||
searchQuery: '',
|
searchQuery: '',
|
||||||
replaceQuery: ''
|
replaceQuery: ''
|
||||||
};
|
};
|
||||||
this.$editor = $$('#editor_sdk');
|
|
||||||
|
|
||||||
$$(document).on('page:init', (e, page) => {
|
$$(document).on('page:init', (e, page) => {
|
||||||
if(!this.searchbar) {
|
if(!this.searchbar) {
|
||||||
|
@ -107,6 +106,11 @@ class SearchView extends Component {
|
||||||
disable: this.onSearchbarShow.bind(this, false)
|
disable: this.onSearchbarShow.bind(this, false)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const $editor = $$('#editor_sdk');
|
||||||
|
|
||||||
|
$editor.on('pointerdown', this.onEditorTouchStart.bind(this));
|
||||||
|
$editor.on('pointerup', this.onEditorTouchEnd.bind(this));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -117,15 +121,15 @@ class SearchView extends Component {
|
||||||
|
|
||||||
componentDidMount(){
|
componentDidMount(){
|
||||||
const $$ = Dom7;
|
const $$ = Dom7;
|
||||||
|
|
||||||
this.$replace = $$('#idx-replace-val');
|
this.$replace = $$('#idx-replace-val');
|
||||||
this.$editor.on('pointerdown', this.onEditorTouchStart.bind(this));
|
|
||||||
this.$editor.on('pointerup', this.onEditorTouchEnd.bind(this));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
this.$editor.off('pointerdown', this.onEditorTouchStart.bind(this));
|
const $$ = Dom7;
|
||||||
this.$editor.off('pointerup', this.onEditorTouchEnd.bind(this));
|
const $editor = $$('#editor_sdk');
|
||||||
|
|
||||||
|
$editor.off('pointerdown', this.onEditorTouchStart.bind(this));
|
||||||
|
$editor.off('pointerup', this.onEditorTouchEnd.bind(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
onSettingsClick(e) {
|
onSettingsClick(e) {
|
||||||
|
|
Loading…
Reference in a new issue