Can't type in inputs on release build #3541
Replies: 2 comments 5 replies
-
Can't remember anyone with that specific problem 🤔
|
Beta Was this translation helpful? Give feedback.
-
I think I hit the same problem, or at least a similar one. I couldn't type into input fields in dev or release mode. So, while the app was running in dev mode, I tried opening it directly in Firefox, Chrome, and Safari ( So I went googling and found this post about fixing a similar bug on iOS Safari by adding the CSS style I doubt this is a Tauri thing because I was hitting my Vite devserver directly, so maybe it's something else in my stack. I'm using Svelte, Tailwind, TypeScript, building with Vite. Dunno. EDIT: Figured it out. I had this block of overzealous code in my index.css: /* Make it more native-ish */
*,
*::after,
*::before {
user-select: none;
-webkit-user-select: none;
-webkit-user-drag: none;
-webkit-app-region: no-drag;
cursor: default;
} I added this below it to bring selection & cursor behavior back to normal for inputs: input {
user-select: initial;
-webkit-user-select: initial;
cursor: initial;
} |
Beta Was this translation helpful? Give feedback.
-
Hi All,
Developing a Tauri App with Vue 3 and Element Plus, all works fine while debugging but once i install a release i can no longer type in text fields, has anyone else seen this before and know of a solution?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions