Closed zepumph closed 3 years ago
The options say:
// Don't replace 'el' Element with the pickr-button, instead use 'el' as a button.
// If true, appendToBody will also be automatically true.
useAsButton: false,
And since false
is the default value it'll be replaced. The el
property without useAsButton: true
is merely an anchor point for where pickr should be mounted :)
I see thanks. Thanks. That is helpful. Closing
What is the current behavior?
When I pass in an element that is a
span
for the button to be added to, creating a pickr swaps that out for adiv
with no explanation.Please provide the steps to reproduce and create a JSFiddle.
Take the above fiddle, and swap the
div.pickr
for aspan
What is the expected behavior?
When I pass in a
span
as theel
option, it should stay aspan
Your environment:
Thanks for taking a look!