Autocomplete should not put focus (or whitespace) on input field by default

Wappler Version : 422
Operating System : Win 10 Pro
PHP MySQL

Expected behavior

What do you think should happen?

Floating label should remain in its default spot when there is no focus or value in the input:
image

Actual behavior

What actually happens?

Undesired markup of the label due to autocomplete putting focus on the input - or having value=" " (whitespace):
image

How to reproduce

Create an input field with a floating label.
Add autocomplete (source from a database).

One of suggested fix

Try calling .blur() at the end of the dmx-autocomplete JS process to remove the focus or the whitespace.

We’re stuck, please provide insights. Thanks

Checking in with you @Teodor. Would this possibly be in the next Wappler version? :slight_smile:

Please test this update.

dmxAutocomplete.zip (2.2 KB)

1 Like

Works great, thanks.

This has been fixed in Wappler 4.3.0