We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb9168c commit fc3d7cdCopy full SHA for fc3d7cd
src/platforms/web/runtime/modules/dom-props.js
@@ -63,7 +63,11 @@ function shouldUpdateValue (
63
function isDirty (elm: acceptValueElm, checkVal: string): boolean {
64
// return true when textbox (.number and .trim) loses focus and its value is
65
// not equal to the updated value
66
- return document.activeElement !== elm && elm.value !== checkVal
+ let notInFocus = true
67
+ // #6157
68
+ // work around IE bug when accessing document.activeElement in an iframe
69
+ try { notInFocus = document.activeElement !== elm } catch (e) {}
70
+ return notInFocus && elm.value !== checkVal
71
}
72
73
function isInputChanged (elm: any, newVal: string): boolean {
0 commit comments