mavo icon indicating copy to clipboard operation
mavo copied to clipboard

If the data source for dynamic select is asynchronous, the select takes its value from the last option

Open DmitrySharabin opened this issue 4 years ago • 3 comments

Even though the browser renders the corresponding select element correctly.

Reduced testcase: https://codepen.io/dmitrysharabin/pen/ExNPKqw?editors=1010

This is the reason why https://mavo.io/get/ still doesn't behave the way we expect (relative to https://github.com/mavoweb/mavo/issues/698).

DmitrySharabin avatar Feb 10 '21 10:02 DmitrySharabin

Thanks for tracking this down! What a weird bug. Can we make a testcase that doesn't depend on async expressions, which are a rather new feature? You could make a backend stub (the backend tests have some of those).

LeaVerou avatar Feb 10 '21 11:02 LeaVerou

Yes, sure, Lea. I’ll give it a shot asap.

DmitrySharabin avatar Feb 10 '21 11:02 DmitrySharabin

Can we make a testcase that doesn't depend on async expressions, which are a rather new feature? You could make a backend stub (the backend tests have some of those).

Thanks for your idea, Lea. Done. It's in the same pen.

DmitrySharabin avatar Feb 10 '21 13:02 DmitrySharabin