You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the datepicker, if you use the inline picker with a customer container option, you will receive the following error:
Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
Inside the _closeDropdown() method, the code is attempting document.body.removeChild(datepicker) on the body element. Since the container option has changed the parent element (the parent is no longer body) this method throws an error.
When using the datepicker, if you use the
inline
picker with a customercontainer
option, you will receive the following error:Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
Inside the
_closeDropdown()
method, the code is attemptingdocument.body.removeChild(datepicker)
on thebody
element. Since thecontainer
option has changed the parent element (the parent is no longerbody
) this method throws an error.https://github.com/mdbootstrap/Tailwind-Elements/blob/dafbb6906a2829a32a9267df082fabb94baca992/src/js/forms/datepicker/index.js#L1114-L1135
To Reproduce
container
option to something other than the bodyinline: true
The text was updated successfully, but these errors were encountered: