Skip to content

Commit 3740190

Browse files
committed
Fix typo and variable assignament
1 parent 904c136 commit 3740190

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/FAB.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
</template>
5252
<template v-else>
5353
<template v-if="mainTooltip">
54-
<div v-bind:v-tooltip="{ content: mainTooltip, placement: tooltipPosition }"
54+
<div v-tooltip="{ content: mainTooltip, placement: tooltipPosition }"
5555
class="fab pointer" :style="{ 'background-color': bgColor }"
5656
>
5757
<i class="material-icons md-36 main" :class="{ rotate: toggle }">{{mainIcon}}</i>
@@ -150,10 +150,10 @@
150150
},
151151
methods: {
152152
tooltipPos() {
153-
if(this.position === 'top-right' || this.position === 'bototm-right') {
154-
this.mainTooltip.placement = 'left'
153+
if(this.position === 'top-right' || this.position === 'bottom-right') {
154+
this.tooltipPosition = 'left'
155155
} else {
156-
this.mainTooltip.placement = 'right'
156+
this.tooltipPosition = 'right'
157157
}
158158
},
159159
toParent(name) {

0 commit comments

Comments
 (0)