Expand my Community achievements bar.

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

Avatar

Level 4

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>`
);

 

Srinivas_Opti_0-1704359914381.png

 

 

Regards,

Srinivas

3 Replies

Avatar

Employee

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

Avatar

Administrator

@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