Skip to content

Fix clean-sidebar on sidebar updates - #2344

Merged
fregante merged 1 commit into
refined-github:masterfrom
sharkykh:fix-clean-sidebar
Aug 15, 2019
Merged

fregante merged 1 commit into
refined-github:masterfrom
sharkykh:fix-clean-sidebar

Conversation

@sharkykh

Copy link
Copy Markdown
Contributor

Using the new onUpdatableContentUpdate by @fregante.

Closes #2333.

Test

On a discussion where you have access to assign things on the sidebar (label, milestone, etc.), make a change - after the "partial" content is updated, the sidebar is cleaned.

Use new `onUpdatableContentUpdate`
@fregante fregante added the bug label Aug 15, 2019
@fregante

Copy link
Copy Markdown
Member

Excellent! Now I wonder if onUpdatableContentUpdate should accept a selector instead. Perhaps HTMLElement | string like many other of our helper functions do (e.g. observeEl)

Also will you look into parse-backticks in the header or should I send a PR?

@fregante
fregante merged commit 51c8d66 into refined-github:master Aug 15, 2019
@sharkykh

Copy link
Copy Markdown
Contributor Author

@sharkykh
sharkykh deleted the fix-clean-sidebar branch August 17, 2019 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

clean-discussion-sidebar isn't re-applied after changes to the sidebar

2 participants