Grid height bug when opening details with vaadin-details components inside

I saw this thread https://vaadin.com/forum/thread/17019831/grid-items-details-height-bug-with-content-loaded-asynchronously, however, that workaround from Tomi does not work when having

vaadin-grid details which contains vaadin-details components. See attachment.

Furthermore, executeJavaScript is Deprecated?!. Testing with 14.1.2.

Any solution for that?
17991060.png

executeJavaScript is deprecated, but you can still use it. The replacement is executeJS (which returns a PendingJavaScriptResult you can use for easy asynchronous access to the browser) - you can find this information from the JavaDoc of executeJavaScript as well.

For the bug, you should create a reproducible example and file a new ticket at https://github.com/vaadin/vaadin-grid-flow/issues . The issue linked in the earlier forum thread (https://github.com/vaadin/vaadin-grid-flow/issues/433) seems to be closed and fixed, so what you’re experiencing is something a bit different.