File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,8 @@ export default Vue.extend({
184184 this . __showPortal ( )
185185
186186 if ( this . noFocus !== true ) {
187- document . activeElement . blur ( )
187+ // IE can have null document.activeElement
188+ document . activeElement !== null && document . activeElement . blur ( )
188189 this . __nextTick ( this . focus )
189190 }
190191
Original file line number Diff line number Diff line change @@ -195,7 +195,10 @@ export default Vue.extend({
195195
196196 blur ( ) {
197197 const el = document . activeElement
198- this . $el . contains ( el ) && el . blur ( )
198+ // IE can have null document.activeElement
199+ if ( el !== null && this . $el . contains ( el ) ) {
200+ el . blur ( )
201+ }
199202 } ,
200203
201204 __focus ( ) {
Original file line number Diff line number Diff line change @@ -134,7 +134,8 @@ export default Vue.extend({
134134
135135 this . $el . dispatchEvent ( create ( 'popup-show' , { bubbles : true } ) )
136136
137- if ( this . noFocus !== true ) {
137+ // IE can have null document.activeElement
138+ if ( this . noFocus !== true && document . activeElement !== null ) {
138139 document . activeElement . blur ( )
139140 }
140141
You can’t perform that action at this time.
0 commit comments