Skip to main content
Level 3
Jan 4, 2024 9:18 AM UTC

About datepicker not showing up on click of image icon of input using vanilajs-datepicker

Hello,

I have an image icon on the date pciker input ,using vanilajs-datepicker.js. When I click it ,does not show the date picker.

But when I click on the input text input it comes up .How to resolve this issue

In the datepicker component we have added an image like below

elem.insertAdjacentHTML(
"afterend",
`<span class="suffix"><i class="calendar-icon" aria-hidden="true" ></i></span>`
);

 

 

 

Regards,

Srinivas

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Level 3
Jan 5, 2024 4:27 AM UTC

Any input

Translate
sudhansh
Adobe Employee
Adobe Employee
Feb 6, 2024 3:59 PM UTC

@srinivas_opti Are you referring to https://mymth.github.io/vanillajs-datepicker/#/ ? Could you clarify how you are using it with AEM Forms.

Translate
kautuk_sahni
Level 9
Feb 28, 2024 11:03 AM UTC

@srinivas_opti Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Translate
Kautuk Sahni