diff --git a/src/modifier/Modifier.js b/src/modifier/Modifier.js index acc0416..d12b3ab 100644 --- a/src/modifier/Modifier.js +++ b/src/modifier/Modifier.js @@ -272,6 +272,17 @@ class Modifier { return this; } + /** + * Sets the style rules to deactivate text-selection in the component. + * @returns {Modifier} + */ + noneSelect() { + return this + .setStyleRule("user-select", "none") + .setStyleRule("-ms-user-select", "none") + .setStyleRule("-webkit-user-select", "none") + } + /** * * @param {StylePropertyMap} rulemap