We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27bcee7 commit f3d4086Copy full SHA for f3d4086
packages/shared/validators.js
@@ -46,13 +46,11 @@ export function componentNeedsCompiling (component: Component) {
46
}
47
48
export function isRefSelector (refOptionsObject: any) {
49
- if (typeof refOptionsObject !== 'object' || !Object.keys(refOptionsObject || {}).length) {
+ if (typeof refOptionsObject !== 'object' || Object.keys(refOptionsObject || {}).length !== 1) {
50
return false
51
52
53
- return Object
54
- .keys(refOptionsObject)
55
- .every(key => ['ref'].includes(key) && typeof refOptionsObject[key] === 'string')
+ return typeof refOptionsObject.ref === 'string'
56
57
58
export function isNameSelector (nameOptionsObject: any) {
0 commit comments