Keyboard automatically hide on input focus


I am having some issue with keyboard showing up but immediately hides on touching/focusing on an input field in an android device. I tested on a few physical devices (with android 7 and below) and keyboard works fine in my limited test set. However, a samsung note 8 with android 8 seems to have issue keeping the keyboard to stick until input is out of focus.

Any advice/experience?