fix(theme): dark and light AppStore menu fix #197
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #172
Fixes #173
Fixes #169
Hi @rohit-gohri, thanks for this amazing plugin. I noticed the issues described in those issues filed and am proposing a fix.
The issue was because we are initiating 2 copies of
AppStore
: one for dark and one for light. The last copy ofAppStore
successfully binds various scroll events to the window and hence was the only one able to receive the event. When in light theme, this doesn't work. I understood from the code that the 2 copies ofAppStore
were meant forServerStyles
to generate the dark and light stylesheets correctly.I propose to only initiate 1 copy of
AppStore
and depending on the theme, update theoptions
accordingly.Feel free to clarify on the changes proposed. If this is alright, I'd like this fix to be published as soon as possible.