Skip to content

Commit f4445c3

Browse files
authored
Fix: Prevent AJAX requests from modifying browser history in datagrid initialization (#1238)
1 parent 7d36e11 commit f4445c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

assets/datagrid-full.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ document.addEventListener("DOMContentLoaded", () => {
2828
.forEach(el => new Dropdown(el))
2929

3030
// Initialize Naja (nette ajax)
31+
naja.defaultOptions.history = false;
3132
naja.formsHandler.netteForms = netteForms;
3233
naja.initialize();
3334

0 commit comments

Comments
 (0)