Skip to content

Commit

Permalink
fix(tags): fix locked issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ysfscream authored and Kinplemelon committed Mar 26, 2021
1 parent b7bdd69 commit 91b2158
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/Tags/src/tags.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</template>

<script lang="ts">
import { defineComponent, nextTick, ref, PropType, computed, watch } from 'vue'
import { defineComponent, nextTick, ref, PropType, computed } from 'vue'
import { ElTag, ElSelect, ElOption } from 'element-plus'
export default defineComponent({
Expand Down Expand Up @@ -110,14 +110,14 @@ export default defineComponent({
const handleInputConfirm = (sourceEvent: 'blur' | 'enter') => {
if (lockedAdd.value && sourceEvent === 'blur') {
lockedAdd.value = false
return
}
const inputValue = tagSelect.value.$refs.reference.modelValue
if (inputValue) {
addTag(inputValue)
}
initInput()
lockedAdd.value = false
}
return {
Expand Down

0 comments on commit 91b2158

Please sign in to comment.