Roo/bootstrap/form/Input.js
authorleon <leon@roojs.com>
Thu, 4 May 2023 04:28:07 +0000 (12:28 +0800)
committerleon <leon@roojs.com>
Thu, 4 May 2023 04:28:07 +0000 (12:28 +0800)
Roo/bootstrap/form/Input.js

index 1d35bf8..89629ee 100644 (file)
@@ -671,13 +671,14 @@ Roo.extend(Roo.bootstrap.form.Input, Roo.bootstrap.Component,  {
 
         if(this.inputType == 'password') {
             this.inputEl().on('click', this.onPasswordClick, this);
+            this.inputEl().on('mouseover', this.onPasswordMouseOver, this);
         }
         
     },
     onPasswordClick : function(e) 
     {
         var input = this.inputEl();
-        
+
         if(e.getPageX() < input.getX() + input.getWidth() - 30) {
             return;
         }
@@ -688,6 +689,11 @@ Roo.extend(Roo.bootstrap.form.Input, Roo.bootstrap.Component,  {
             input.attr('type', 'password');
         }
     },
+    onPasswordMouseOver : function(e)
+    {
+        Roo.log(e.pageX);
+        Roo.log(e.pageY);
+    },
     filterValidation : function(e){
         if(!e.isNavKeyPress()){
             this.validationTask.delay(this.validationDelay);