BUG: Scrollable onStart/onEnd/updateTarget not Overridable
Question
Version: 0.17.3
Are you able to reproduce the bug from the demo?
- Yes
- No
What is the expected behavior?
Being able to override onStart, onEnd, and updateTarget in a component's model.default.scrollable, as detailed in the documentation.
Describe the bug detailed
I have created a component that extends ComponentImage. The content is not a static image but rendered as necessary, and when the destination size changes, it has to be rerendered.
According to the documentation, I should be able to define onEnd in model.default.scrollable to trigger the rerender from there after the resizing is done (I don't want to continually redraw while the user is still resizing).
What is the current behavior?
When I define any onEnd function, it overrides the onEnd defined in SelectComponent.js, which breaks the whole state machine there. For example, since toggleFramesEvents is no longer called, the whole iframe is wrapped in pointer-events: none and thus doesn't respond to any user interaction any more.
Describe the bug detailed
Since this is not a class I'm overriding, but just some inline functions that get overwritten, I can't call the parent function, since it doesn't exist any more within the scrollable. I also can't copy/paste the content of the parent function into mine, because it references local variables I don't have access to.
The same issue exists with all other functions that are defined in SelectComponent.js there, which are onStart, onMove, and updateTarget.
Answers (0)
No answers yet.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3564
BUG: Unable to refresh the iframe
0.17.19 Are you able to reproduce the bug from the demo? YES What is the expected behavior? I had asked a question regarding iframe refresh...
Issue #2943
BUG: this.get('content') returns empty string when trying to add custom component type
Version: 0.16.18 Are you able to reproduce the bug from the demo?>> Demo <<< [ X ] Yes [ ] No What is the expected behavior? Expecting this...
Issue #3731
BUG: Text element not able to be selected twice after extended with events
Version: 0.17.25 Are you able to reproduce the bug from the demo?[ ] Yes[x] No What is the expected behavior? Update a existing component o...
Issue #3573
BUG: Duplicate controls for every component
Version: 0.17.17 Are you able to reproduce the bug from the demo?[ ] Yes[x] No What is the expected behavior? It shouldn't show duplicate c...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.