You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Everything seems to work fine except when hitting the back button after a Turbolink visit
Consider this code:
import $ from 'jquery'
import SimpleMDE from 'simplemde';
$.onmount('#markitup', function () {
if ($("#markitup").length === 1) {
var simplemde = new SimpleMDE({ element: $("#markitup")[0] });
}
})
$(document).on('ready turbolinks:load', function () { $.onmount() })
$(document).on('turbolinks:before-render', function () { $.onmount.teardown() })
SimpleMDE is never triggered twice while changing the page (clicking on links) except when pressing the back button
The text was updated successfully, but these errors were encountered:
Everything seems to work fine except when hitting the back button after a Turbolink visit
Consider this code:
SimpleMDE is never triggered twice while changing the page (clicking on links) except when pressing the back button
The text was updated successfully, but these errors were encountered: