Skip to content

Commit

Permalink
Avoid closing prompt editor when user's drag ends out of window
Browse files Browse the repository at this point in the history
Signed-off-by: Jay Wang <jay@zijie.wang>
  • Loading branch information
xiaohk committed Feb 17, 2024
1 parent 78c9167 commit 9c1cd34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/prompt-editor/prompt-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ export class WordflowPromptEditor extends LitElement {
return html`
<div
class="prompt-editor"
@click=${(e: MouseEvent) => this.promptEditorBackgroundClicked(e)}
@mousedown=${(e: MouseEvent) => this.promptEditorBackgroundClicked(e)}
>
<div class="prompt-window">
<div class="toast-container">
Expand Down

0 comments on commit 9c1cd34

Please sign in to comment.