From 55a1b8402fd258da084df9b8a3935eef8450247c Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 01 八月 2021 18:03:02 +0800 Subject: [PATCH] 2021-08-01 --- src/menu/stylecontroller/styleInput/index.jsx | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/menu/stylecontroller/styleInput/index.jsx b/src/menu/stylecontroller/styleInput/index.jsx index eadf6ef..6d9dee9 100644 --- a/src/menu/stylecontroller/styleInput/index.jsx +++ b/src/menu/stylecontroller/styleInput/index.jsx @@ -106,7 +106,7 @@ const { unit } = this.state let val = e.target.value - if (/\d+\.$/.test(val)) { + if (/\d+\.$|^-$/.test(val)) { this.setState({ value: val }) -- Gitblit v1.8.0