Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

DateRangePicker shifts DIV tag when created by Javascript #932

Copy link
Copy link
Open
@BoomiTris

Description

@BoomiTris
Issue body actions

Hi,

I am trying to trial the DateRangePicker before purchasing a license. I struggled for hours, every time instantiated a DateRangePicker via Javascript (with custom ranges) as per example (except HTML slightly different - see later), I noticed that my other form elements would be grouped into the same column.

I noticed that when instantiated with Javascript, and using empty element notation to close the div placeholder for the DateRangePicker the closing tag for the placeholder is moved to just above the close tag.

Is this correct?

<div id="datepicker" /> <!--does not work, close div is generated and moved to above </body> -->
<div id="datepicker"></div> <!--works-->

Example at CodePen: https://codepen.io/Tristan-Margot/pen/dPydEXG
Fix: Use close tag

  • Operating system and version (Windows, macOS, Android, iOS): Windows
  • Browser and version (Chrome, Firefox, Safari, Microsoft Edge, Opera, Android Browser): Chrome

Many thanks,
Tristan

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.