Skip to main content
Inspiring
February 18, 2021
Question

Animate text input library conflict

  • February 18, 2021
  • 1 reply
  • 311 views

Hey folks,

 

I was looking for a way to put a text input field on the canvas. For this it seems te only solution is the text input component from animate. When we had any form of user input or other html components we'd do this with by opening a modal with a button on the canvas. This was fine for the most part tho this type of input has to be on the canvas itself. Problem is that when I put the text input component on my drawing and publish it it seems to create a conflict with the jQuery library we use for a date picker among other things on the before mentioned modal. 

 

Is there another solution to having a text input on the canvas? Or something im missing that is causing the conflict between jQuery and this animate component?

 

If my question needs more detail let me know.

This topic has been closed for replies.

1 reply

JoãoCésar17023019
Community Expert
Community Expert
February 18, 2021

Hi.

 

The components from the HTML5 Canvas document already use jQuery under the hood.

 

Have you tried not including jQuery and just let Animate include it automatically when at least one component is used?

 

Another option is to create an input element at runtime using the createElement method from the document object.

 

Regards,

JC

Inspiring
February 26, 2021

Removing the jquery reference we added sadly didn't solve it. Would the option of creating the element mean its placed over top of the canvas? and would this require positioning it through the code?