-
Notifications
You must be signed in to change notification settings - Fork 95
Open
Description
When I try to use the onChange binding, the page freezes up until I make my first change on the select. Then the page behaves relatively normally. I think there is some kind of circular checking that happens, when using this handler. onSelect seems to do the trick, not causing hanging.
On a separate note, when trying to test the functionality with enzyme, simulate('change') seems to not work, most likely because I'm using onSelect instead of onChange.
Stack trace:
Uncaught (in promise) RangeError: Maximum call stack size exceeded
at RegExp.[Symbol.replace] (native)
at String.replace (native)
at Function.htmlPrefilter
at jQuery.fn.init.<anonymous>
at access
at jQuery.fn.init.html
at DecoratedClass.Placeholder.createPlaceholder
at DecoratedClass.createPlaceholder
at DecoratedClass.Placeholder.update
at DecoratedClass.update
Please let me know if you need more details, thanks.
Addendum:
My value is '', but my data does not contain this value. I think this is what is causing the infinite loop.
Metadata
Metadata
Assignees
Labels
No labels