mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Fixed #3945 - SpeedDial: Mask and SpeedDial itself prevent pointer events and speedDial does not close using item slot
This commit is contained in:
parent
e1af6c210a
commit
45320f0856
2 changed files with 5 additions and 1 deletions
4
components/lib/speeddial/SpeedDial.d.ts
vendored
4
components/lib/speeddial/SpeedDial.d.ts
vendored
|
@ -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…
Add table
Add a link
Reference in a new issue