# Web Editor Feature Request - Don't auto-expand folders on save

**URL:** <https://discourse.processing.org/t/web-editor-feature-request-dont-auto-expand-folders-on-save/43036>\
**Category:** p5.js\
**Created:** [October 23, 2023, 4:29pm UTC](https://discourse.processing.org/t/web-editor-feature-request-dont-auto-expand-folders-on-save/43036 "2023-10-23T16:29:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![StevenJS](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@StevenJS](https://discourse.processing.org/u/StevenJS)\
**Post date:** [October 23, 2023, 4:29pm UTC](https://discourse.processing.org/t/web-editor-feature-request-dont-auto-expand-folders-on-save/43036/1 "2023-10-23T16:29:21Z")

</div>

When I save my work in the the p5.js Web editor (or an auto-save occurs), all the folders expand to reveal their contents, even after I contract them. Please don’t modify the expanded or contracted state of any folder upon saving. Thanks.

---

<div class="post-metadata">

**Author:** ![mnse](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mnse/32/16520_2.png) [@mnse](https://discourse.processing.org/u/mnse)\
**Post date:** [October 23, 2023, 4:47pm UTC](https://discourse.processing.org/t/web-editor-feature-request-dont-auto-expand-folders-on-save/43036/2 "2023-10-23T16:47:48Z")

</div>

Hi @StevenJS,

I guess you wanted to issue here! 😉

> **[Issues · processing/p5.js-web-editor](https://github.com/processing/p5.js-web-editor/issues)**
>
> p5.js Web Editor, officially launched! Contribute to processing/p5.js-web-editor development by creating an account on GitHub.

Cheers  
— mnse

---

<div class="post-metadata">

**Author:** ![StevenJS](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@StevenJS](https://discourse.processing.org/u/StevenJS)\
**Post date:** [October 23, 2023, 5:27pm UTC](https://discourse.processing.org/t/web-editor-feature-request-dont-auto-expand-folders-on-save/43036/3 "2023-10-23T17:27:48Z")

</div>

Thanks @mnse . I created an issue.

> <https://github.com/processing/p5.js-web-editor/issues/2530>
>
> \### p5.js version
> 
> p5.js v1.7.0 July 10, 2023
> 
> \### What is your operating system…?
> 
> Windows
> 
> \### Web browser and version
> 
> 1.59.120 Chromium: 118.0.5993.88 (Official Build) (64-bit) 
> 
> \### Actual Behavior
> 
> When I save my work in the the p5.js Web editor (or an auto-save occurs), all the folders expand to reveal their contents, even after I contract them.
> 
> \### Expected Behavior
> 
> Folders should retain their collapsed or expanded state when a save or auto-save occurs.
> 
> \### Steps to reproduce
> 
> \### Steps:
> 1. Collapse a folder. (You may need to create one and upload files into it first.)
> 2. Save your work (or wait for an auto-save to occur).
> 3. Observe that the folder you just collapsed has expanded again.
