mapcentia / geocloud2

The GC2 framework helps you build a spatial data infrastructure quickly and easily. Powered using open source components for a scalable solution focused on freedom rather than fees.
https://www.osgeo.org/projects/gc2-vidi/
GNU Affero General Public License v3.0
148 stars 67 forks source link

Slightly annoying/confusing behavior when typing a value in a drop down menu that also allows typing a value #104

Open velle opened 2 years ago

velle commented 2 years ago

In the classes editor for a layer. Some fields, eg "line cap" has a drop down menu but does not allow the user to type a value. Other fields with a drop down menu also allows typing a value, eg "geotransform" and "symbol". Below I will use "symbol" as an example.

This drop down menu actually does contain an item with the empty string (or NULL or whatever), so it is possible to click it with the mouse and have the value unset.

It is also possible to select the item with the empty string if you use up and down arrows on the keyboard, and then click enter.

However, if the value is set, eg to "square", and you set the typing cursor in the field, and delete the string with backspace, and then press enter or tab, it will set to the previous value, "square", which is not the expected behavior. This is because the drop down menu will show all "matching" items for the empty string, which are all of them, and have the previous value selected. See screen shot below.

image

If the field is unset, and I click it with the mouse and then ctrl+v "circle", this "circle" string is inserted, but (most times though not every time) the drop down menu does not filter based on what was pasted, and therefore if I press enter, the empty string is selected. See screenshot below.

image

I know these are minor issues, but I will share here and let the community decide if they are worth doing anything about.