Unverified Commit 6d43c21d authored by 向偲彪's avatar 向偲彪 Committed by GitHub
Browse files

[bug fix]Click the cancel button to prevent the input box from losing focus #3116 (#3115)



* [bugfix]Replace favicon icon with png

* Cancel the initial value of the node cache

* [bug fix]Click the cancel button to prevent the input box from losing focus

Co-authored-by: default avatardailidong <dailidong66@gmail.com>
parent 5868af89
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -260,7 +260,7 @@
    </div>
    <div class="bottom-box">
      <div class="submit" style="background: #fff;">
        <x-button type="text" @click="close()"> {{$t('Cancel')}} </x-button>
        <x-button type="text" id="cancelBtn"> {{$t('Cancel')}} </x-button>
        <x-button type="primary" shape="circle" :loading="spinnerLoading" @click="ok()" :disabled="isDetails">{{spinnerLoading ? 'Loading...' : $t('Confirm add')}} </x-button>
      </div>
    </div>
@@ -580,6 +580,7 @@
        }
        this.isContentBox = false
        // flag Whether to delete a node this.$destroy()
        
        this.$emit('close', {
          item: {
            type: this.cacheBackfillItem.type,
@@ -675,7 +676,11 @@
      this.isContentBox = true
    },
    mounted () {

      let self = this
      $("#cancelBtn").mousedown(function(event){
        event.preventDefault();
        self.close()
      });
    },
    updated () {
    },