fix the phone input field showing the wrong placeholder (#9316)

This commit is contained in:
Kyℓe Hensel
2022-11-02 06:56:48 +13:00
committed by GitHub
parent 78d37fd7a8
commit 2bf92b42b9
2 changed files with 3 additions and 0 deletions

View File

@@ -40,6 +40,7 @@
"ms": "+1-664-555-1234",
"nl": "+31 42 123 4567",
"no": "+47 22 12 34 56",
"nz": "+64 9 123 4567",
"pe": "+51 1 1234567",
"pl": "+48 42 123 4567",
"pr": "+1-787-555-1234",

View File

@@ -324,6 +324,8 @@ export function uiFieldText(field, context) {
.attr('placeholder', isMixed ? t('inspector.multiple_values') : (field.placeholder() || t('inspector.unknown')))
.classed('mixed', isMixed);
if (field.type === 'tel') updatePhonePlaceholder();
if (field.key.split(':').includes('colour')) updateColourPreview();
if (outlinkButton && !outlinkButton.empty()) {