@@ -14,7 +14,6 @@ import { isBoolean, isEvent, isFunction, isUndefined } from '../../utils/inspect
14
14
import { omit, sortKeys } from '../../utils/object'
15
15
import { makeProp, makePropsConfigurable, pluckProps } from '../../utils/props'
16
16
import { computeHref, computeRel, computeTag, isRouterLink } from '../../utils/router'
17
-
import { getInstanceFromVNode } from '../../utils/get-instance-from-vnode'
18
17
import { attrsMixin } from '../../mixins/attrs'
19
18
import { listenOnRootMixin } from '../../mixins/listen-on-root'
20
19
import { listenersMixin } from '../../mixins/listeners'
@@ -165,9 +164,11 @@ export const BLink = /*#__PURE__*/ Vue.extend({
165
164
} else {
166
165
// Router links do not emit instance `click` events, so we
167
166
// add in an `$emit('click', event)` on its Vue instance
167
+
//
168
+
// seems not to be required for Vue3 compat build
168
169
/* istanbul ignore next: difficult to test, but we know it works */
169
-
if (isRouterLink && getInstanceFromVNode(event.currentTarget)) {
170
-
getInstanceFromVNode(event.currentTarget).$emit(EVENT_NAME_CLICK, event)
170
+
if (isRouterLink) {
171
+
event.currentTarget.__vue__?.$emit(EVENT_NAME_CLICK, event)
171
172
}
172
173
// Call the suppliedHandler(s), if any provided
173
174
concat(suppliedHandler)
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