Browse Source

keep input box at zIndex-1 to prevent it interfering with the user... still works luckily

Dan Walmsley 3 years ago
parent
commit
4a94292d33
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Web/Avalonia.Web/webapp/modules/avalonia/dom.ts

+ 1 - 0
src/Web/Avalonia.Web/webapp/modules/avalonia/dom.ts

@@ -47,6 +47,7 @@ export class AvaloniaDOM {
         inputElement.style.color = "transparent";
         inputElement.style.display = "none";
         inputElement.style.height = "20px";
+        inputElement.style.zIndex = "-1";
         inputElement.onpaste = function () { return false; };
         inputElement.oncopy = function () { return false; };
         inputElement.oncut = function () { return false; };