Skip to content
Commit 9e767b46 authored by Daniel Calviño Sánchez's avatar Daniel Calviño Sánchez
Browse files

Fix toggle element being removed when MainFileInfoView is rendered again



The toggle element was added to the MainFileInfoView element when
SystemTagsInfoView was rendered. However, if the MainFileInfoView was
rendered again after that the toggle element was removed. Therefore,
instead of adding it when SystemTagsInfoView is rendered, the toggle
element has to be added when MainFileInfoView triggers its "post-render"
event.

Note, however, that when MainFileInfoView is rendered all the events are
removed from its child elements. As the toggle uses a "click" event
either the event has to be added back or the element has to be detached
before the MainFileInfoView is rendered.

Fixes #4944

Signed-off-by: default avatarDaniel Calviño Sánchez <danxuliu@gmail.com>
parent 599274f5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment