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}
|
* @type {MenuItem}
|
||||||
*/
|
*/
|
||||||
item: MenuItem;
|
item: MenuItem;
|
||||||
|
/**
|
||||||
|
* ıtem click function
|
||||||
|
*/
|
||||||
|
onClick: void;
|
||||||
}): VNode[];
|
}): VNode[];
|
||||||
/**
|
/**
|
||||||
* Custom button template.
|
* 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>
|
<span v-if="item.icon" :class="['p-speeddial-action-icon', item.icon]" v-bind="getPTOptions(`${id}_${index}`, 'actionIcon')"></span>
|
||||||
</a>
|
</a>
|
||||||
</template>
|
</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>
|
</li>
|
||||||
</template>
|
</template>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue