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

DEV: Don't define _super when modifying widgets unless the property is a function #8042

Merged
merged 1 commit into from
Aug 27, 2019
Merged

DEV: Don't define _super when modifying widgets unless the property is a function #8042

merged 1 commit into from
Aug 27, 2019

Conversation

OsamaSayegh
Copy link
Member

I was trying to override a core widget's tagName property in a theme and I was seeing a very weird behavior where the widget would render in the DOM as <function> element with weird classes such as _super apply args. I tracked it down to this bug here where we always define _super regardless if whether the old property as a function.

@discoursebot
Copy link

You've signed the CLA, OsamaSayegh. Thank you! This pull request is ready for review.

@OsamaSayegh OsamaSayegh merged commit 2305a6f into discourse:master Aug 27, 2019
@OsamaSayegh OsamaSayegh deleted the fix-reopen-widget branch August 27, 2019 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants