framework7io / framework7

Full featured HTML framework for building iOS & Android apps
http://framework7.io
MIT License
18.06k stars 3.23k forks source link

Bug with Sheet on Svelte #4100

Closed AlexRMU closed 1 year ago

AlexRMU commented 1 year ago

Describe the bug

If you open and close the sheet using a bind, everything does not work as expected. When opened, the entire sheet opens, along with the step, and after closing, the value of the opened does not change and it cannot be reopened. If you remove style="height: auto;", the sheet will open and close normally, but it will not be possible to scroll through and open step. No closing events are triggered.

To Reproduce

Steps to reproduce the behavior:

  1. Click "OPEN"
  2. Close the sheet
  3. Repeat

Expected behavior

The state of the sheet is managed using a bind and works fine. Step works as it should.

Actual Behavior

Sheet does not work as expected.

Additional context

I think the problem is simultaneous swipeToClose and bind:opened. Individually, everything works as it should.

AlexRMU commented 1 year ago

Also, the sheet does not open if you do sheet.instance().opened = true, only with sheet.instance().app.sheet.open(sheet.instance().el)