From 501011ef4d99357eca006577f04d4a85542e067e Mon Sep 17 00:00:00 2001 From: Martin Raifer Date: Tue, 8 Nov 2022 13:16:08 +0100 Subject: [PATCH] use colour field type instead of relying on the tag key see #9320 --- modules/ui/fields/input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/fields/input.js b/modules/ui/fields/input.js index 2afa74c2b..76b795d32 100644 --- a/modules/ui/fields/input.js +++ b/modules/ui/fields/input.js @@ -180,7 +180,7 @@ export function uiFieldText(field, context) { if (value) window.open(value, '_blank'); }) .merge(outlinkButton); - } else if (field.key.split(':').includes('colour')) { + } else if (field.type === 'colour') { input.attr('type', 'text'); updateColourPreview();