From 0336cb5129814b9a3143b09099fb666817004d1a Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Mon, 2 Sep 2024 14:59:02 -0300 Subject: [PATCH] Adds input validation for latitude and longitude values in metadata settings form. --- .../metadata-types/geocoordinate/FormGeoCoordinate.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/admin/components/metadata-types/geocoordinate/FormGeoCoordinate.vue b/src/views/admin/components/metadata-types/geocoordinate/FormGeoCoordinate.vue index a4023cdc2..f223afdbe 100644 --- a/src/views/admin/components/metadata-types/geocoordinate/FormGeoCoordinate.vue +++ b/src/views/admin/components/metadata-types/geocoordinate/FormGeoCoordinate.vue @@ -86,7 +86,9 @@ :placeholder="-14.408656999999" name="initialLatitude" expanded - type="text" + type="number" + :min="-90" + :max="90" :step="0.000000000001" @update:model-value="emitValues()" @focus="clear()" /> @@ -95,7 +97,9 @@ :placeholder="-51.316689999999" name="initialLongitude" expanded - type="text" + type="number" + :min="-180" + :max="180" :step="0.000000000001" @update:model-value="emitValues()" @focus="clear()" />