Skip to content

Commit

Permalink
oh-card: Fix action & tap-hold action not working (#2931)
Browse files Browse the repository at this point in the history
Regression from #2781.

Signed-off-by: Florian Hotze <[email protected]>
(cherry picked from commit a907cc3)
  • Loading branch information
florian-h05 committed Dec 19, 2024
1 parent 2891765 commit c00c9a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</f7-card-header>
</slot>
<slot name="content-root">
<f7-card-content @click.native="config.action ? performAction : ''" :style="{ ...contentStyle, ...config.contentStyle}" :class="[ ...(Array.isArray(contentClass) ? contentClass : ['padding']), ...(Array.isArray(config.contentClass) ? config.contentClass : []) ]">
<f7-card-content @click.native="performAction" @taphold.native="onTaphold($event)" @contextmenu.native="onContextMenu($event)" :style="{ ...contentStyle, ...config.contentStyle}" :class="[ ...(Array.isArray(contentClass) ? contentClass : ['padding']), ...(Array.isArray(config.contentClass) ? config.contentClass : []) ]">
<slot name="content" />
</f7-card-content>
</slot>
Expand Down

0 comments on commit c00c9a4

Please sign in to comment.