Fixed #3945 - SpeedDial: Mask and SpeedDial itself prevent pointer events and speedDial does not close using item slot

pull/3958/head
Tuğçe Küçükoğlu 2023-05-12 14:01:41 +03:00
parent e1af6c210a
commit 45320f0856
2 changed files with 5 additions and 1 deletions

View File

@ -244,6 +244,10 @@ export interface SpeedDialSlots {
* @type {MenuItem}
*/
item: MenuItem;
/**
* ıtem click function
*/
onClick: void;
}): VNode[];
/**
* Custom button template.

View File

@ -50,7 +50,7 @@
<span v-if="item.icon" :class="['p-speeddial-action-icon', item.icon]" v-bind="getPTOptions(`${id}_${index}`, 'actionIcon')"></span>
</a>
</template>
<component v-else :is="$slots.item" :item="item"></component>
<component v-else :is="$slots.item" :item="item" :onClick="(event) => onItemClick(event, item)"></component>
</li>
</template>
</ul>