mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
fix the phone input field showing the wrong placeholder (#9316)
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user