File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ export const UA = inBrowser && window.navigator.userAgent.toLowerCase();
66export const isIE = UA && / m s i e | t r i d e n t / . test ( UA ) ;
77export const isIE9 = UA && UA . indexOf ( 'msie 9.0' ) > 0 ;
88export const isEdge = UA && UA . indexOf ( 'edge/' ) > 0 ;
9- export const isAndroid = ( UA && UA . indexOf ( 'android' ) > 0 ) || ( weexPlatform === 'android' ) ;
10- export const isIOS = ( UA && / i p h o n e | i p a d | i p o d | i o s / . test ( UA ) ) || ( weexPlatform === 'ios' ) ;
9+ export const isAndroid = ( UA && UA . indexOf ( 'android' ) > 0 ) || weexPlatform === 'android' ;
10+ export const isIOS = ( UA && / i p h o n e | i p a d | i p o d | i o s / . test ( UA ) ) || weexPlatform === 'ios' ;
1111export const isChrome = UA && / c h r o m e \/ \d + / . test ( UA ) && ! isEdge ;
1212export const isPhantomJS = UA && / p h a n t o m j s / . test ( UA ) ;
1313export const isFF = UA && UA . match ( / f i r e f o x \/ ( \d + ) / ) ;
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ import {
5151} from './util' ;
5252import { SelectPropTypes } from './PropTypes' ;
5353import contains from '../_util/Dom/contains' ;
54+ import { isIE , isEdge } from '../_util/env' ;
5455
5556Vue . use ( ref , { name : 'ant-ref' } ) ;
5657const SELECT_EMPTY_VALUE_KEY = 'RC_SELECT_EMPTY_VALUE_KEY' ;
@@ -623,13 +624,17 @@ const Select = {
623624 } ,
624625 inputBlur ( e ) {
625626 const target = e . relatedTarget || document . activeElement ;
627+
628+ // https://github.com/vueComponent/ant-design-vue/issues/999
629+ // https://github.com/vueComponent/ant-design-vue/issues/1223
626630 if (
627- e . relatedTarget === this . $refs . arrow ||
628- ( target &&
629- this . selectTriggerRef &&
630- this . selectTriggerRef . getInnerMenu ( ) &&
631- this . selectTriggerRef . getInnerMenu ( ) . $el === target ) ||
632- contains ( e . target , target )
631+ ( isIE || isEdge ) &&
632+ ( e . relatedTarget === this . $refs . arrow ||
633+ ( target &&
634+ this . selectTriggerRef &&
635+ this . selectTriggerRef . getInnerMenu ( ) &&
636+ this . selectTriggerRef . getInnerMenu ( ) . $el === target ) ||
637+ contains ( e . target , target ) )
633638 ) {
634639 e . target . focus ( ) ;
635640 e . preventDefault ( ) ;
You can’t perform that action at this time.
0 commit comments