About datepicker not showing up on click of image icon of input using vanilajs-datepicker | Community
Skip to main content
Level 3
January 4, 2024

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

  • January 4, 2024
  • 3 replies
  • 784 views

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
January 5, 2024

Any input

sudhansh
Adobe Employee
Adobe Employee
February 6, 2024

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

kautuk_sahni
Community Manager
Community Manager
February 28, 2024

@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.

Kautuk Sahni