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

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.


1 Like

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