Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cell toolbar getting stuck when using collapse cell #15732

Merged

Conversation

FoSuCloud
Copy link
Contributor

References

Fixes #15671

Code changes

The reason for the bug is that after the folded cell is clicked, the _onActiveCellChanged function is triggered, but because theinputHidden attribute of the folded cell activeCell is true, the _previousActiveCell variable is not updated.
After that, clicking other cells cannot destroy the previous active cell toolbar

截屏2024-02-02 08 25 32

User-facing changes

Before the change

false.mp4

After the change

true.mp4

Backwards-incompatible changes

nothing

Copy link

Thanks for making a pull request to jupyterlab!
To try out this branch on binder, follow this link: Binder

@FoSuCloud
Copy link
Contributor Author

@meeseeksdev tag bug

@lumberbot-app lumberbot-app bot added the bug label Feb 2, 2024
@krassowski krassowski added this to the 4.0.x milestone Feb 2, 2024
Copy link
Member

@krassowski krassowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @FoSuCloud!

Minor suggestion on the style of the comment.

packages/cell-toolbar/src/celltoolbartracker.ts Outdated Show resolved Hide resolved
@FoSuCloud
Copy link
Contributor Author

Thank you @FoSuCloud! 谢谢!

Minor suggestion on the style of the comment.关于评论风格的小建议。

thank you for the change

@krassowski krassowski changed the title Fix: Cell toolbar gets stuck when using collapse cell Fix cell toolbar getting stuck when using collapse cell Feb 3, 2024
@krassowski krassowski merged commit b2f36ff into jupyterlab:main Feb 3, 2024
80 checks passed
@krassowski
Copy link
Member

@meeseeksdev please backport to 4.0.x

meeseeksmachine pushed a commit to meeseeksmachine/jupyterlab that referenced this pull request Feb 3, 2024
krassowski pushed a commit that referenced this pull request Feb 3, 2024
…e cell (#15738)

Co-authored-by: FoSuCloud <49218295+FoSuCloud@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cell toolbar gets stuck when using collapse cell feature
2 participants