A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/bootstrap-vue/bootstrap-vue/commit/33c6cefc2f46ab8110e39f110d984f230d525c86 below:

don't render `target` or `rel` attrs when `router-tag` o… · bootstrap-vue/bootstrap-vue@33c6cef · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+6

-10

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+6

-10

lines changed Original file line number Diff line number Diff line change

@@ -149,23 +149,19 @@ export const BLink = /*#__PURE__*/ Vue.extend({

149 149

}

150 150

},

151 151

render(h) {

152 +

const { active, disabled, target, routerTag, isRouterLink } = this

152 153

const tag = this.computedTag

153 154

const rel = this.computedRel

154 155

const href = this.computedHref

155 -

const isRouterLink = this.isRouterLink

156 156 157 157

const componentData = {

158 -

class: { active: this.active, disabled: this.disabled },

158 +

class: { active, disabled },

159 159

attrs: {

160 160

...this.$attrs,

161 -

rel,

162 -

target: this.target,

163 -

tabindex: this.disabled

164 -

? '-1'

165 -

: isUndefined(this.$attrs.tabindex)

166 -

? null

167 -

: this.$attrs.tabindex,

168 -

'aria-disabled': this.disabled ? 'true' : null

161 +

// We don't render `rel` or `target` on non link tags when using `vue-router`

162 +

...(isRouterLink && routerTag !== 'a' && routerTag !== 'area' ? {} : { rel, target }),

163 +

tabindex: disabled ? '-1' : isUndefined(this.$attrs.tabindex) ? null : this.$attrs.tabindex,

164 +

'aria-disabled': disabled ? 'true' : null

169 165

},

170 166

props: this.computedProps

171 167

}

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4