Browse Source

Fixed Time/DateField crash

Tig 11 tháng trước cách đây
mục cha
commit
9dcfe02087
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      Terminal.Gui/Views/DateField.cs
  2. 1 1
      Terminal.Gui/Views/TimeField.cs

+ 1 - 1
Terminal.Gui/Views/DateField.cs

@@ -167,7 +167,7 @@ public class DateField : TextField
             newPoint = 1;
         }
 
-        if (newPoint != point)
+        //if (newPoint != point)
         {
             CursorPosition = newPoint;
         }

+ 1 - 1
Terminal.Gui/Views/TimeField.cs

@@ -225,7 +225,7 @@ public class TimeField : TextField
             newPoint = 1;
         }
 
-        if (newPoint != point)
+        //if (newPoint != point)
         {
             CursorPosition = newPoint;
         }