Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Commit

Permalink
fix(flow-item): update to only show fab-container when fab slot is used
Browse files Browse the repository at this point in the history
  • Loading branch information
asangma authored Mar 2, 2020
1 parent 3b00652 commit 004019f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/calcite-flow-item/calcite-flow-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -347,11 +347,12 @@ export class CalciteFlowItem {
}

renderFab(): VNode {
return (
const hasFab = this.el.querySelector(`[slot=${SLOTS.fab}]`);
return hasFab ? (
<div class={CSS.fabContainer} slot={PANEL_SLOTS.fab}>
<slot name={SLOTS.fab} />
</div>
);
) : null;
}

render() {
Expand Down

0 comments on commit 004019f

Please sign in to comment.