Skip to content

Why when the datepicker is initialized in javascript, the html page is scrolled up? #66

Description

@kobazzo

I have an html page, laravel blade exactly, on the top i have two input type=text used with datepicker. The problem is that when the datepicker is initialized in javascript, the html page is scrolled up. This is the code that i've put at the bottom of the page:

<script type="text/javascript">
        $(document).ready(function () {            
            $('.date').datepicker({
                firstDayOfWeek: 1,
                weekDayFormat: 'narrow',
                inputFormat: 'd/M/y',
                outputFormat: 'd/M/y',
                markup: 'bootstrap4',
                theme: 'bootstrap',
                modal: false
            });
        });
    </script>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions