Closed tomsaleeba closed 2 years ago
The bug seems to be in Onsen breaking all action sheets, I wasn't able to figure it out.. I checked the documentation and it doesn't look like the syntax for action sheets has changed at all (https://onsen.io/v2/api/js/ons-action-sheet.html). I also tried reverting versions for onsenui and vue-onsenui, but it didn't help.
The offending line in the source (https://github.com/OnsenUI/OnsenUI/blame/master/onsenui/esm/ons/internal/animator-factory.js#L104) hasn't been touched in 7 years. The whole file has been moved a few times recently but hasn't been meaningfully changed in a long time :shrug:.
The next thing to trace would be the this._animators
param. But we've got more important things.
Brainstorming a workaround, we could stop using the context menu and just put buttons for the actions either in the toolbar or on the page. Then we don't care if the context menu is broken.
Comment from meeting: let's remove the menu and swap to buttons.
I've removed the context menu and made delete its own button, which now works: 906fe2285deae062df24013271fcfca36ff56296. Delete was the only option in the menu, so it makes more sense to just have it as its own button anyway.
Env Commit eb206c80369cc191e2f9c00f130ca7792600136e Chrome 101 on Linux
Steps
Expected: The menu opens at the bottom of the screen, no errors in the browser console. Here's a screen capture from beta (https://beta.app.wildorchidwatch.org/) which is not broken.![menu-working](https://user-images.githubusercontent.com/1773838/171776417-0e818085-f4d5-4c1e-9835-728cb1a5bed5.gif)
Actual: The menu does not open and this error appears in the console
I recently updated Onsen, the UI library that gives us this menu, so my guess is that broke something.
CC @tokmakoff