File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
components/picker/stories Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -64,10 +64,9 @@ export const Picker = ({
64
64
id=${ id }
65
65
style=${ styleMap ( customStyles ) }
66
66
type="button"
67
- @click=${ ( ) => {
68
- if ( window . isChromatic ( ) ) return ;
69
- updateArgs ( { isOpen : ! isOpen } ) ;
70
- } }
67
+ @click=${ function ( ) {
68
+ updateArgs ( { isOpen : ! isOpen } ) ;
69
+ } }
71
70
aria-labelledby=${ ifDefined ( ariaLabeledBy ) }
72
71
>
73
72
${ when ( contentIconName , ( ) =>
@@ -195,12 +194,6 @@ export const Template = ({
195
194
} , context )
196
195
) }
197
196
</ div > ` ;
198
-
199
- // Make sure there is a wrapper around sibling components when using the Chromatic
200
- // template, so their layout is not affected by the flex and grid layouts used.
201
- if ( window . isChromatic ( ) ) {
202
- return html `< div style ="position: relative; "> ${ markup } </ div > ` ;
203
- }
204
197
return markup ;
205
198
} ;
206
199
You can’t perform that action at this time.
0 commit comments