Просмотр исходного кода

Merge pull request #225 from smiclea/password-fill

Browsers autofill passwords in endpoint popup
Dorin Paslaru 8 лет назад
Родитель
Сommit
5e1901fe9f
1 измененных файлов с 5 добавлено и 0 удалено
  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>
     )
   }