Skip to content

Commit

Permalink
monaco: Fixes crash when dropping files on editor (closes #1160)
Browse files Browse the repository at this point in the history
  • Loading branch information
bummoblizard committed Oct 26, 2024
1 parent 4e4484e commit 23b2d93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CodeApp/Managers/WebViewBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ class WebViewBase: KBWebViewBase {
}

if let interactionView = findInteractionView(in: subviews) {
interactionView.pasteConfiguration = nil
for interaction in interactionView.interactions {
if interaction is UIDragInteraction || interaction is UIDropInteraction {
interactionView.removeInteraction(interaction)
Expand Down

0 comments on commit 23b2d93

Please sign in to comment.