@eturnity/eturnity_reusable_components 1.2.31-3d-master.2 → 1.2.31-3d-master.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<container :inputWidth="inputWidth" :alignItems="alignItems">
|
|
3
3
|
<label-slot-wrapper v-if="hasLabelSlot" :isInteractive="isInteractive" @mousedown="initInteraction">
|
|
4
|
-
|
|
5
4
|
<slot name="label"></slot>
|
|
6
5
|
</label-slot-wrapper>
|
|
7
6
|
|
|
@@ -488,6 +487,15 @@ export default {
|
|
|
488
487
|
})
|
|
489
488
|
this.$emit('input-focus')
|
|
490
489
|
},
|
|
490
|
+
blurInput() {
|
|
491
|
+
if (this.disabled) {
|
|
492
|
+
return
|
|
493
|
+
}
|
|
494
|
+
this.isFocused = false
|
|
495
|
+
this.$nextTick(() => {
|
|
496
|
+
this.$refs.inputField1.$el.blur()
|
|
497
|
+
})
|
|
498
|
+
},
|
|
491
499
|
formatWithCurrency(value) {
|
|
492
500
|
let adjustedMinValue =
|
|
493
501
|
value || value === 0
|
|
@@ -517,6 +525,7 @@ export default {
|
|
|
517
525
|
}
|
|
518
526
|
},
|
|
519
527
|
initInteraction(e) {
|
|
528
|
+
this.focusInput()
|
|
520
529
|
window.addEventListener('mousemove', this.interact, false);
|
|
521
530
|
window.addEventListener('mouseup', this.stopInteract, false);
|
|
522
531
|
e.preventDefault()
|