Text selection in CustomLayout

Hi there,
I’m going crazy trying to figure out why you cannot highlight (select) text using CustomLayout. Simple example, I create CustomLayout from file which contains only[code]

Test
[/code] and i cannot highlight and copy text! Please help, I'm losing my mind trying to get it work...

Hi All,
Does anyone have any thoughts about this? I am using Vaadin 8.9.0 and facing this exact problem with CustomLayout, much to the dismay of my user base.

Any suggestion on how to fix it are greatly appreciated.

Discovered that we can add user-select: text; css to the div tag, making the text within copy-and-paste-able.