How to inicialize clearButton (x) when the field comes with default value #21
Replies: 4 comments 5 replies
-
By default value you mean you are adding to the input text field?
|
Beta Was this translation helpful? Give feedback.
-
By
Namely part
When user edit existing post, fields are prefilled with previous values. |
Beta Was this translation helpful? Give feedback.
-
So as I thought, but I did it with js and you added vlaue in html :) The simplest solution is:
At the moment it is not possible to check the field when calling Autocomple. It is possible that in the future I will add this functionality to the library https://github.com/tomik23/autocomplete |
Beta Was this translation helpful? Give feedback.
-
@jasomdotnet A new version has arrived 😁 - clear-button-on |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Tomas,
now, the
clearButton
is displayed only when the value is supplied for the input over autocomplete. What is great forpost add
.On
post edit
, the field comes already with the value and there is noclearButton
. Can you add detection if the autocomplete field has default value soclearButton
is displayed automatically?Beta Was this translation helpful? Give feedback.
All reactions