Fixed #3945 - SpeedDial: Mask and SpeedDial itself prevent pointer events and speedDial does not close using item slot
parent
e1af6c210a
commit
45320f0856
|
@ -244,6 +244,10 @@ export interface SpeedDialSlots {
|
|||
* @type {MenuItem}
|
||||
*/
|
||||
item: MenuItem;
|
||||
/**
|
||||
* ıtem click function
|
||||
*/
|
||||
onClick: void;
|
||||
}): VNode[];
|
||||
/**
|
||||
* Custom button template.
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue