From 4198b95ef6bed70abd1429accc3e534e932c2be5 Mon Sep 17 00:00:00 2001 From: trading_peter Date: Fri, 25 Mar 2022 23:42:12 +0100 Subject: [PATCH] Prevent text selection. --- package.json | 2 +- tp-icon.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 2f34096..55e1e46 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tp/tp-icon", - "version": "1.0.0", + "version": "1.0.1", "description": "", "main": "tp-icon.js", "scripts": { diff --git a/tp-icon.js b/tp-icon.js index de7f768..fed3b4c 100644 --- a/tp-icon.js +++ b/tp-icon.js @@ -16,6 +16,10 @@ class TpIcon extends Tooltip(LitElement) { height: var(--tp-icon-height, 24px); cursor: pointer; outline: none; + user-select: none; + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; } .wrap {