Skip to content

Commit

Permalink
fix: migrate from v-tooltip to native title in ActionSingle
Browse files Browse the repository at this point in the history
- Remove usage of already deleted directive v-tooltip
- Fixed native title text to be the same as was used in tooltip to show shortcuts on desktop

Signed-off-by: Grigorii K. Shartsev <[email protected]>
  • Loading branch information
ShGKme committed Jan 11, 2024
1 parent bff5a79 commit 95f8f3d
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/components/Menu/ActionSingle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,26 +104,17 @@ export default {
const { class: classes, ...attrs } = bindState
// do not use tooltip if is a item of action list
const directives = isItem
? []
: [{
name: 'tooltip',
value: tooltip,
}]
const children = [h(icon, { slot: 'icon' })]
// do not use title if is a item of action list
const title = isItem ? undefined : label
const title = isItem ? undefined : tooltip
if (isItem || actionEntry.forceLabel) {
// add label
children.push(label)
}
return h(component, {
directives,
staticClass: 'entry-single-action entry-action',
class: classes,
attrs: {
Expand Down

0 comments on commit 95f8f3d

Please sign in to comment.