We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9567c88 commit 3c8d737Copy full SHA for 3c8d737
src/components/Actions/Actions.vue
@@ -808,14 +808,23 @@ export default {
808
*/
809
if (this.isValidSingleAction && !this.forceMenu) {
810
console.debug('render single action')
811
- const icon = actions[0]?.data?.scopedSlots?.icon()?.[0]
+ const firstAction = actions[0]
812
+ const icon = firstAction?.data?.scopedSlots?.icon()?.[0]
813
return h('ButtonVue',
814
{
815
class: 'action-item action-item--single',
816
props: {
817
type: 'tertiary',
818
disabled: this.isDisabled,
819
},
820
+ directives: [{
821
+ name: 'tooltip',
822
+ value: firstAction?.componentOptions?.children?.[0]?.text,
823
+ modifiers: {
824
+ auto: true,
825
+ },
826
+
827
+ }]
828
829
[
830
h('template', { slot: 'icon' }, [ icon ]),
0 commit comments