From 5e4b413b3a493cf4294cf8c10f4cabae68fe2c4f Mon Sep 17 00:00:00 2001 From: Leandro Gaspar Scanavini Date: Thu, 23 Aug 2018 07:51:07 -0300 Subject: [PATCH] Prevent icon-picker from triggering unnecessary layout reflow --- ui/icon-picker.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/icon-picker.js b/ui/icon-picker.js index 123a8417e5..6632143aa7 100644 --- a/ui/icon-picker.js +++ b/ui/icon-picker.js @@ -16,6 +16,7 @@ class IconPicker extends Picker { selectItem(target, trigger) { super.selectItem(target, trigger); const item = target || this.defaultItem; + if (this.label.innerHTML === item.innerHTML) return; this.label.innerHTML = item.innerHTML; } }