浏览代码

Fix changing swimlane color to not reload webpage.

Thanks to xet7 !
Lauri Ojansivu 1 月之前
父节点
当前提交
ecf2418347
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      client/components/swimlanes/swimlaneHeader.js

+ 5 - 0
client/components/swimlanes/swimlaneHeader.js

@@ -178,6 +178,11 @@ BlazeComponent.extendComponent({
   events() {
     return [
       {
+        'submit form'(event) {
+          event.preventDefault();
+          this.currentSwimlane.setColor(this.currentColor.get());
+          Popup.back();
+        },
         'click .js-palette-color'() {
           this.currentColor.set(this.currentData().color);
         },