mithra62 / ee-datalist-ft

Adds a `datalist` input field to Channel Entry management.
BSD 2-Clause "Simplified" License
0 stars 1 forks source link

value/label pairs don't exist in datalist #1

Open murtaugh opened 2 years ago

murtaugh commented 2 years ago

I didn't know this until I gave this field a try, but apparently the datalist field type doesn't support option labels (see: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist).

The screenshot below is what you get in Safari when you use the value/label pairs option when setting up the field:

image
murtaugh commented 2 years ago

This is a strange disappointment.

murtaugh commented 2 years ago

But after thinking about it for 5 seconds, it makes sense, because any human-entered data would not be in the same label/value format.

mithra62 commented 2 years ago

Yeah, it's a weird one, isn't it? Am open to suggestions on how best to handle that though.

murtaugh commented 2 years ago

Is there a way to hide the "Value/Label Pairs" option? I think that's all that would need to be done.

murtaugh commented 2 years ago

But just knowing not to use that is enough for me at the moment.

mithra62 commented 2 years ago

Is there a way to hide the "Value/Label Pairs" option? I think that's all that would need to be done.

No, that's an internal EE thing :(