[Bug]: SfDrawer does not support open={true} initial state
skirianov opened this issue · 2 comments
skirianov commented
Describe the Bug
When setting SfDrawer open
prop to true
it results in error in Next.js
<SfDrawer
open={false}
>
this works well, but
<SfDrawer
open={true}
>
results in error (screenshot attached)
Current behavior
Breaking client app
Expected behavior
Should work well if we want to set Drawer open by default
Steps to reproduce
Import SfDrawer
Set open
prop to true
Open client
What package and version of StorefrontUI are you using?
2.1.0
What framework does your application use?
Next.js
What version of Node.js are you using?
16
What browser (and version) are you using?
Chrome
What operating system (and version) are you using?
MacOS
Relevant log output
No response
Able to fix / change the documentation?
- Yes
- No
Code of Conduct
- I agree to follow this project's Code of Conduct
dkacper commented
Thank you @skirianov. We believe this bug has been already fixed by our team and the fix should be released as a part of the 2.2 release soon. We're going to double check though.