'click.bs.button.data-api' is triggered by bootstrap when the trigger button is clicked and at that point the class "collapsed" is changed, giving a correct time and state for the toggle button
Using document.body.offsetWidth and the resize event to make sure that the menu is not visible
Using following techniques:
↓ Recording of the error showing up when clicking to quickly (state before this PR) Screen Recording 2020-02-26 at 23.36.57.zip
Close #69