I have a weird problem related to Dialog or Popup, I have a screen that shows a lazy list of cards when I click on a card I display a Dialog that among other things allows to scroll up and down the aforesaid list. But after randomly 2,3,4 times the whole dialog is closed without passing by the onDismissRequest handler. If I call the code that produces the scroll in for example the topApp Bar then everything is ok.