Commit 30e0582 1 parent c39b180 commit 30e0582 Copy full SHA for 30e0582
File tree 3 files changed +10
-6
lines changed
3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## next
4
+
5
+ - Fix the issue of title blinking when opening the same image again (#609 ).
6
+
3
7
## 1.11.4 (Jul 23, 2023)
4
8
5
9
- Fix the incorrect RegExp for Safari browser detection (#606 ).
Original file line number Diff line number Diff line change @@ -122,9 +122,6 @@ export default {
122
122
this . clearEnforceFocus ( ) ;
123
123
}
124
124
125
- this . fulled = false ;
126
- this . viewed = false ;
127
- this . isShown = false ;
128
125
this . close ( ) ;
129
126
this . unbind ( ) ;
130
127
addClass ( viewer , CLASS_HIDE ) ;
@@ -134,6 +131,9 @@ export default {
134
131
viewer . setAttribute ( 'aria-hidden' , true ) ;
135
132
this . resetList ( ) ;
136
133
this . resetImage ( ) ;
134
+ this . fulled = false ;
135
+ this . viewed = false ;
136
+ this . isShown = false ;
137
137
this . hiding = false ;
138
138
139
139
if ( ! this . destroyed ) {
Original file line number Diff line number Diff line change @@ -300,16 +300,16 @@ export default {
300
300
} ,
301
301
302
302
resetImage ( ) {
303
- // this.image only defined after viewed
304
- if ( this . viewing || this . viewed ) {
305
- const { image } = this ;
303
+ const { image } = this ;
306
304
305
+ if ( image ) {
307
306
if ( this . viewing ) {
308
307
this . viewing . abort ( ) ;
309
308
}
310
309
311
310
image . parentNode . removeChild ( image ) ;
312
311
this . image = null ;
312
+ this . title . innerHTML = '' ;
313
313
}
314
314
} ,
315
315
} ;
You can’t perform that action at this time.
0 commit comments