File tree Expand file tree Collapse file tree 4 files changed +17
-6
lines changed Expand file tree Collapse file tree 4 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
- ### 2.30.1
3
+ ### 2.30.0
4
4
5
5
– ` New ` – Block Tunes now supports nesting items
6
6
– ` New ` – Block Tunes now supports separator items
7
7
– ` New ` – "Convert to" control is now also available in Block Tunes
8
-
9
- ### 2.30.0
10
-
11
8
- ` Improvement ` — The ability to merge blocks of different types (if both tools provide the conversionConfig)
12
9
- ` Fix ` — ` onChange ` will be called when removing the entire text within a descendant element of a block.
13
10
- ` Fix ` - Unexpected new line on Enter press with selected block without caret
14
11
- ` Fix ` - Search input autofocus loosing after Block Tunes opening
15
12
- ` Fix ` - Block removing while Enter press on Block Tunes
13
+ – ` Fix ` – Unwanted scroll on first typing on iOS devices
16
14
17
15
### 2.29.1
18
16
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @editorjs/editorjs" ,
3
- "version" : " 2.30.0-rc.5 " ,
3
+ "version" : " 2.30.0-rc.6 " ,
4
4
"description" : " Editor.js — Native JS, based on API and Open Source" ,
5
5
"main" : " dist/editorjs.umd.js" ,
6
6
"module" : " dist/editorjs.mjs" ,
Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ export class PopoverMobile extends PopoverAbstract<PopoverMobileNodes> {
30
30
*/
31
31
private history = new PopoverStatesHistory ( ) ;
32
32
33
+ /**
34
+ * Flag that indicates if popover is hidden
35
+ */
36
+ private isHidden = true ;
37
+
33
38
/**
34
39
* Construct the instance
35
40
*
@@ -58,18 +63,26 @@ export class PopoverMobile extends PopoverAbstract<PopoverMobileNodes> {
58
63
super . show ( ) ;
59
64
60
65
this . scrollLocker . lock ( ) ;
66
+
67
+ this . isHidden = false ;
61
68
}
62
69
63
70
/**
64
71
* Closes popover
65
72
*/
66
73
public hide ( ) : void {
74
+ if ( this . isHidden ) {
75
+ return ;
76
+ }
77
+
67
78
super . hide ( ) ;
68
79
this . nodes . overlay . classList . add ( css . overlayHidden ) ;
69
80
70
81
this . scrollLocker . unlock ( ) ;
71
82
72
83
this . history . reset ( ) ;
84
+
85
+ this . isHidden = true ;
73
86
}
74
87
75
88
/**
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export default class ScrollLocker {
15
15
/**
16
16
* Stores scroll position, used for hard scroll lock
17
17
*/
18
- private scrollPosition : null | number ;
18
+ private scrollPosition : null | number = null ;
19
19
20
20
/**
21
21
* Locks body element scroll
You can’t perform that action at this time.
0 commit comments