Skip to content

Commit

Permalink
fix(VariantManagement): disabled prop disables onClick events (#119)
Browse files Browse the repository at this point in the history
* fix(VariantManagement): disabled prop disables onClick events

* updated snapshots
  • Loading branch information
Lukas742 authored and vbersch committed Sep 13, 2019
1 parent 180196a commit ccdf3dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports[`FilterBar Hide Filter Bar 1`] = `
class="FilterBar--filterBarHeader-"
>
<div
style="display: inline-block;"
style="pointer-events: auto; display: inline-block;"
>
<div
class="Variant-Management--VariantManagement-"
Expand Down Expand Up @@ -172,7 +172,7 @@ exports[`FilterBar Render without crashing 1`] = `
class="FilterBar--filterBarHeader-"
>
<div
style="display: inline-block;"
style="pointer-events: auto; display: inline-block;"
>
<div
class="Variant-Management--VariantManagement-"
Expand Down Expand Up @@ -325,7 +325,7 @@ exports[`FilterBar Select Filter Item 1`] = `
class="FilterBar--filterBarHeader-"
>
<div
style="display: inline-block;"
style="pointer-events: auto; display: inline-block;"
>
<div
class="Variant-Management--VariantManagement-"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`VariantManagement Render without crashing 1`] = `
Array [
<div
style="display: inline-block;"
style="pointer-events: auto; display: inline-block;"
>
<div
class="Variant-Management--VariantManagement-"
Expand Down
1 change: 1 addition & 0 deletions packages/main/src/components/VariantManagement/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ const VariantManagement: FC<VariantManagementPropTypes> = forwardRef(
headerText={popupTitle}
placementType={placement}
openBy={variantManagementButton}
openByStyle={{ pointerEvents: disabled ? 'none' : 'auto' }}
footer={footerButtons}
className={className}
innerStyles={style}
Expand Down

0 comments on commit ccdf3dc

Please sign in to comment.