pui-no-select modifier to prevent text from being selectable. This is useful to prevent accidental selection of the labels on checkboxes when clicking them.
It is generally not recommended to use this modifier on its own, since preventing the selection of some text may worsen the user experience. Instead of adding the class directly, use the
noSelect prop on the
Radio, which will automatically add this modifier to the text next to the input.
noSelect prop to take effect, you will need to import this modifier as shown below.
|Prevent selection of text within an element|