Onsen splitter side throws error when closing
SharkChips last edited by
When I close a splitter side in onsen ui 2.0.0-beta.7, the following error is returned:
Uncaught (in promise) Not in Collapse Mode.
This only occurs if I try to closed a closed menu. This behavior did not happen in beta.6
@SharkChips Thanks for reporting! I have also seen this behavior. We will investigate why this happens.
openMenuand related methods return promises since beta.7. If for some reason the splitter cannot open or close (because it’s already open/closed, another splitter is open, etc.), it will reject the promise and this is printed on the console if you don’t handle it with
catch. I think we will modify this behavior because it could be a bit annoying. In any case, you don’t need to worry about those error messages now since they don’t affect your app.