You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Print-Window, we can configure the orientation of the map for printing. There is a slider and a number-field. But we cannot manually set negative numbers in the number-field, cause only numbers are allowed. So when we try to insert a value that begins with the char "-", the field will remain unchanged.
(Actually we can add the char "-" before the orientation value, but not replace the whole field with "-" alone)
To correct this, I wanted to activate the allowInvalid option on the input.
But because of issues with HTML5 constraint validation, we cannot use input[type=number] with allowInvalid. See: https://docs.angularjs.org/api/ng/input/input%5Bnumber%5D
I think a text-input should be used here, so that the character "-" will be allowed.
In the Print-Window, we can configure the orientation of the map for printing. There is a slider and a number-field. But we cannot manually set negative numbers in the number-field, cause only numbers are allowed. So when we try to insert a value that begins with the char "-", the field will remain unchanged.
(Actually we can add the char "-" before the orientation value, but not replace the whole field with "-" alone)
This can be reproduced here : https://geomapfish-demo.camptocamp.net/2.2/
To correct this, I wanted to activate the allowInvalid option on the input.
But because of issues with HTML5 constraint validation, we cannot use input[type=number] with allowInvalid. See: https://docs.angularjs.org/api/ng/input/input%5Bnumber%5D
I think a text-input should be used here, so that the character "-" will be allowed.
If further information is needed please see https://github.com/camptocamp/baselstadt_mapbs/commit/5d65f61fe3b6897ad6a3b78afc39710f72b87d6a
The text was updated successfully, but these errors were encountered: