Hide the bucket limit input when clicked away
This commit is contained in:
parent
48fb707032
commit
f9844384be
2 changed files with 3 additions and 0 deletions
|
@ -42,6 +42,7 @@ export default {
|
|||
if (this.open) {
|
||||
closeWhenClickedOutside(e, this.$refs.dropdown, () => {
|
||||
this.open = false
|
||||
this.$emit('close', e)
|
||||
})
|
||||
}
|
||||
},
|
||||
|
|
|
@ -43,6 +43,7 @@
|
|||
class="is-right options"
|
||||
v-if="canWrite"
|
||||
trigger-icon="ellipsis-v"
|
||||
@close="() => showSetLimitInput = false"
|
||||
>
|
||||
<a
|
||||
@click.stop="showSetLimitInput = true"
|
||||
|
@ -53,6 +54,7 @@
|
|||
<input
|
||||
@change="() => setBucketLimit(bucket)"
|
||||
@keyup.enter="() => setBucketLimit(bucket)"
|
||||
@keyup.esc="() => showSetLimitInput = false"
|
||||
class="input"
|
||||
type="number"
|
||||
min="0"
|
||||
|
|
Loading…
Reference in a new issue