Skip to content

Commit ce2bdfb

Browse files
zampinoAdamFrey
andauthored
Prevent DOM scrolling on kill shortcut (#23)
Co-authored-by: Adam Frey <[email protected]>
1 parent 3a0a131 commit ce2bdfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nextjournal/clojure_mode/commands.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
(.setAttribute input-el "class" "clipboard-input")
3232
(j/assoc! input-el :innerHTML text)
3333
(-> js/document .-body (.appendChild input-el))
34-
(.focus input-el)
34+
(.focus input-el #js {:preventScroll true})
3535
(.select input-el)
3636
(js/document.execCommand "copy")
3737
(.focus focus-el #js {:preventScroll true})

0 commit comments

Comments
 (0)