Explorar o código

Merge pull request #225 from smiclea/password-fill

Browsers autofill passwords in endpoint popup
Dorin Paslaru %!s(int64=8) %!d(string=hai) anos
pai
achega
5e1901fe9f
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      src/components/organisms/Endpoint/index.jsx

+ 5 - 0
src/components/organisms/Endpoint/index.jsx

@@ -394,6 +394,11 @@ class Endpoint extends React.Component<Props, State> {
         {this.renderButtons()}
         <Tooltip />
         {Tooltip.rebuild()}
+        {/* Fix browsers autofilling password fields */}
+        <div style={{ position: 'absolute', left: '-10000px' }}>
+          <input type="text" />
+          <input type="password" />
+        </div>
       </Content>
     )
   }