Skip to content

Commit

Permalink
fix(tauri): allow context menu on list titles
Browse files Browse the repository at this point in the history
  • Loading branch information
sekwah41 committed Oct 6, 2023
1 parent ffe075f commit 9a39445
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/renderer/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ export default function App() {
const contextEvent = (event: MouseEvent) => {
if (event.target) {
let target = event.target as HTMLElement;
if (target.tagName === "TEXTAREA") {
if (
target.tagName === "TEXTAREA" ||
(target.tagName === "INPUT" &&
(target as HTMLInputElement).type === "text")
) {
return true;
}
}
Expand Down

0 comments on commit 9a39445

Please sign in to comment.