Beee4life / acf-city-selector

An ACF extension to create a new field type, where you can select a city based on country and provence/state.
37 stars 15 forks source link

Small field select2 #124

Closed jlb-1985 closed 1 year ago

jlb-1985 commented 1 year ago

Hi,

First, thanks for creating this plugin! It’s great! I have a small issue. When I choose Select2 in acf, I get very small fields when I’m making a post and want to select a state or city. It makes it hard to see and choose any of them.

1AA862E7-4467-4B89-866B-F6B6CB562595

jlb-1985 commented 1 year ago

FA844278-3AFF-4E17-A061-CFC63286F6E9

Beee4life commented 1 year ago

Can it be you created different tabs/groups in your acf fields ?

jlb-1985 commented 1 year ago

I have 3 fieldgroups and a few other fields in ACF.
City selector has a normal width when I disable Select2

Beee4life commented 1 year ago

I think it's caused, if the field is not immediately into 'focus'. I think it also happens, when you put it on a tabbed page, which is not visible yet when you load the page.

I think it can be fixed by setting the width to 100%.

jlb-1985 commented 1 year ago

I found out what caused it, it was very simple. If I disable show label then the width turned normal.

Beee4life commented 1 year ago

Good you found a way to make it work, but it's not optimal plugin behaviour. Should always be 100%