diff --git a/public/react/src/modules/courses/boards/BoardsNew.js b/public/react/src/modules/courses/boards/BoardsNew.js
index 303d683ce..6932b96cf 100644
--- a/public/react/src/modules/courses/boards/BoardsNew.js
+++ b/public/react/src/modules/courses/boards/BoardsNew.js
@@ -308,7 +308,7 @@ class BoardsNew extends Component{
{getFieldDecorator('sticky', {
valuePropName: 'checked',
diff --git a/public/react/src/modules/courses/boards/index.js b/public/react/src/modules/courses/boards/index.js
index cc761cd5d..6822d526c 100644
--- a/public/react/src/modules/courses/boards/index.js
+++ b/public/react/src/modules/courses/boards/index.js
@@ -218,6 +218,9 @@ class Boards extends Component{
}
onPressEnter = (e) => {
+ clearTimeout(this.timeoutHandler)
+ this.timeoutHandler = null;
+
this.fetchAll(this.state.searchValue, 1)
}
onInputSearchChange = (e) => {
@@ -227,6 +230,7 @@ class Boards extends Component{
if (this.timeoutHandler) {
clearTimeout(this.timeoutHandler)
+ this.timeoutHandler = null;
}
this.timeoutHandler = setTimeout(() => {
this.fetchAll(this.state.searchValue, 1)
diff --git a/public/react/src/modules/courses/common/formCommon.css b/public/react/src/modules/courses/common/formCommon.css
index c4a14924c..5b30a338c 100644
--- a/public/react/src/modules/courses/common/formCommon.css
+++ b/public/react/src/modules/courses/common/formCommon.css
@@ -18,6 +18,10 @@
.courseForm .ant-form-item-label {
margin-left: -10px;
}
+.courseForm .notRequired .ant-form-item-label {
+ margin-left: 0px;
+}
+
/* 不知道被哪个样式影响,这里需要重置 */
.courseForm .ant-input:focus {