Disable caption selection

Is there a way to disable the selection of the caption of a checkbox or a textfield?


you could try the following CSS rule within your own theme:

.v-caption, .v-label, .v-checkbox label {
   -webkit-user-select: none;
   -khtml-user-select: none;
   -moz-user-select: none;
   -ms-user-select: none;
   user-select: none;

Disclaimer: I didn’t actually try this myself. Also, there may be some CSS selectors missing but that should cover most cases.

works perfect!!! thank you :smiley:

ahh it doesn´t works so perfect as it seems to…

i´ve added the “.v-verticallayout, .v-horizontallayout” parameter to the css code and the selection of the captions was now complettly disabled. But the selection in a textfield was also disabled. is there a way to enable the textfield selection?!

hope you understand my problem :smiley:

Adding “.v-verticallayout” means VerticalLayouts and everything that is inside them - you should use more specific selectors such as limiting only to captions of/in such layouts.