We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 048e940 commit 5340f1bCopy full SHA for 5340f1b
src/platforms/web/runtime/modules/attrs.js
@@ -1,6 +1,7 @@
1
/* @flow */
2
3
import { isIE9, isEdge } from 'core/util/env'
4
+import config from 'core/config'
5
6
import {
7
extend,
@@ -59,6 +60,13 @@ function updateAttrs (oldVnode: VNodeWithData, vnode: VNodeWithData) {
59
60
}
61
62
function setAttr (el: Element, key: string, value: any) {
63
+ // The attributes are not set to their default values
64
+ // for elements in the ignoredElements array
65
+ // eg. <custom-tab-bar selected="tab1"></custom-tab-bar>
66
+ if (config.ignoredElements.indexOf(el.tagName.toLowerCase()) > -1) {
67
+ el.setAttribute(key, value)
68
+ return
69
+ }
70
if (isBooleanAttr(key)) {
71
// set attribute for blank value
72
// e.g. <option disabled>Select one</option>
0 commit comments