should not be able to change date on readonly
authorAlan <alan@roojs.com>
Wed, 20 Mar 2024 07:25:13 +0000 (15:25 +0800)
committerAlan <alan@roojs.com>
Wed, 20 Mar 2024 07:25:13 +0000 (15:25 +0800)
Roo/bootstrap/form/DateField.js

index c93bf08..a489975 100644 (file)
@@ -563,7 +563,10 @@ Roo.extend(Roo.bootstrap.form.DateField, Roo.bootstrap.form.Input,  {
     
     showPopup : function()
     {
-        this.picker().show();
+        if(this.readOnly) {
+                       return;
+               }
+               this.picker().show();
         this.update();
         this.place();