Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'isSame' of undefined when removing all the dates when in multidate mode #325

Open
tonix-tuft opened this issue Apr 25, 2020 · 1 comment

Comments

@tonix-tuft
Copy link

tonix-tuft commented Apr 25, 2020

On the documentation website:

Screen Shot 2020-04-26 at 01 57 42

This happens with the following multidate picker after unsetting all the selected dates by clicking them one after the other:

<div class="container">
    <div class="row">
        <div class="col-sm-6">
            <div class="form-group">
                <div class="input-group date" id="datetimepicker14" data-target-input="nearest">
                    <input type="text" class="form-control datetimepicker-input" data-target="#datetimepicker14"/>
                    <div class="input-group-append" data-target="#datetimepicker14" data-toggle="datetimepicker">
                        <div class="input-group-text"><i class="fa fa-calendar"></i></div>
                    </div>
                </div>
            </div>
        </div>
        <script type="text/javascript">
            $(function () {
                $('#datetimepicker14').datetimepicker({
                    allowMultidate: true,
                    multidateSeparator: ','
                });
            });
        </script>
    </div>
</div>
tonix-tuft added a commit to tonix-tuft/tempusdominus-bootstrap that referenced this issue Apr 26, 2020
@tonix-tuft
Copy link
Author

I have created the PR. Please, merge it into master. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant