mirror of
https://github.com/codex-team/editor.js
synced 2024-05-24 17:42:22 +02:00
fix scroll on ios typing
This commit is contained in:
parent
54c4c234a5
commit
85491eebd9
|
@ -65,6 +65,12 @@ export class PopoverMobile extends PopoverAbstract<PopoverMobileNodes> {
|
|||
* Closes popover
|
||||
*/
|
||||
public hide(): void {
|
||||
const isAlreadyHidden = this.nodes.overlay.classList.contains(css.overlayHidden);
|
||||
|
||||
if (isAlreadyHidden) {
|
||||
return;
|
||||
}
|
||||
|
||||
super.hide();
|
||||
this.nodes.overlay.classList.add(css.overlayHidden);
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ export default class ScrollLocker {
|
|||
/**
|
||||
* Stores scroll position, used for hard scroll lock
|
||||
*/
|
||||
private scrollPosition: null|number;
|
||||
private scrollPosition: null | number = null;
|
||||
|
||||
/**
|
||||
* Locks body element scroll
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
"compilerOptions" : {
|
||||
"sourceMap": true,
|
||||
"target": "es2017",
|
||||
"strict": true,
|
||||
"declaration": false,
|
||||
"moduleResolution": "node", // This resolution strategy attempts to mimic the Node.js module resolution mechanism at runtime
|
||||
"lib": ["dom", "es2017", "es2018", "es2019"],
|
||||
|
|
Loading…
Reference in a new issue