Fixed react DOM removal on settings close and the settings debug popup has been disabled
This commit is contained in:
parent
3b500daac7
commit
76cd711f67
2 changed files with 2 additions and 2 deletions
shared/js
|
@ -401,7 +401,7 @@ function main() {
|
||||||
], () => {});
|
], () => {});
|
||||||
*/
|
*/
|
||||||
}, 4000);
|
}, 4000);
|
||||||
spawnSettingsModal("general-keymap");
|
//spawnSettingsModal("general-keymap");
|
||||||
//Modals.spawnKeySelect(console.log);
|
//Modals.spawnKeySelect(console.log);
|
||||||
//Modals.spawnBookmarkModal();
|
//Modals.spawnBookmarkModal();
|
||||||
|
|
||||||
|
|
|
@ -349,7 +349,7 @@ function settings_general_language(container: JQuery, modal: Modal) {
|
||||||
function settings_general_keymap(container: JQuery, modal: Modal) {
|
function settings_general_keymap(container: JQuery, modal: Modal) {
|
||||||
const entry = <KeyMapSettings />;
|
const entry = <KeyMapSettings />;
|
||||||
ReactDOM.render(entry, container[0]);
|
ReactDOM.render(entry, container[0]);
|
||||||
modal.close_listener.push(() => ReactDOM.hydrate(entry, container[0])); //FIXME: hydrate does not work!
|
modal.close_listener.push(() => ReactDOM.unmountComponentAtNode(container[0]));
|
||||||
}
|
}
|
||||||
|
|
||||||
function settings_general_chat(container: JQuery, modal: Modal) {
|
function settings_general_chat(container: JQuery, modal: Modal) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue