Don't require services/osm in order to get max OSM character lengths

This commit is contained in:
Quincy Morgan
2020-01-28 09:28:23 -05:00
parent b949cc6bb6
commit 89ce98f510
16 changed files with 38 additions and 46 deletions
+1 -2
View File
@@ -4,7 +4,6 @@ import * as countryCoder from '@ideditor/country-coder';
import { t, textDirection } from '../../util/locale';
import { dataPhoneFormats } from '../../../data';
import { services } from '../../services';
import { utilGetSetValue, utilNoAuto, utilRebind } from '../../util';
import { svgIcon } from '../../svg/icon';
@@ -46,7 +45,7 @@ export function uiFieldText(field, context) {
.attr('type', field.type === 'identifier' ? 'text' : field.type)
.attr('id', fieldID)
.attr('placeholder', field.placeholder() || t('inspector.unknown'))
.attr('maxlength', services.osm.maxCharsForTagValue())
.attr('maxlength', context.maxCharsForTagValue())
.classed(field.type, true)
.call(utilNoAuto)
.merge(input);