I made a JSFiddle demonstrating the issue: https://jsfiddle.net/unhumbleben/xksv8L04/
To reproduce the bug you need to reload the page, but I\'m not