Closed ChrisKnightLDN closed 10 months ago
This doesn't seem to be cleared on close This does not seem to happen on storybook.
In both storybook and the ev charging dashboard, these CSS properties are set on the <html>
tag when the modal is opened and then cleared when the modal is dismissed (this is easy to miss in storybook, since the story is inside an iframe
so there are multiple <html>
elements).
Yes - sorry the comment wasn't clear - The bug is not present in storybook - because the css properties are correctly cleared when the modal is dismissed. On the effected app the css properties are not being cleared.
I think this was a problem due to hmr in dev. Closing for now.
Describe the bug In an app with a modal scrolling is disabled once the modal has been opened
To Reproduce Steps to reproduce the behavior: on an app with an 'open modal' button and content long enough to trigger scroll:
Expected behavior After the modal is closed scrolling the page should be possible
Screenshots If applicable, add screenshots to help explain your problem.
![image](https://github.com/Greater-London-Authority/ldn-viz-tools/assets/111759008/8389ed12-4915-4e2f-b328-2ab6620f8404)
Desktop (please complete the following information):
Additional context A style is applied to the html on opening the modal:
This doesn't seem to be cleared on close
This bug does not does not seem to happen on storybook. Where css properties are cleared as expected