@carbon/vue 2.36.0 → 2.37.0

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,7 @@
1
1
  {
2
2
  "name": "@carbon/vue",
3
3
  "description": "A collection of components for the Carbon Design System built using Vue.js",
4
- "version": "2.36.0",
4
+ "version": "2.37.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -73,5 +73,5 @@
73
73
  "eslint-plugin-prettier": "^3.1.1",
74
74
  "vue-template-compiler": "^2.6.12"
75
75
  },
76
- "gitHead": "eedeed035dbf99b9abb34145c0bb013999cdec12"
76
+ "gitHead": "0e0d5021f14dee6f4b86ba443dfb5552c647665c"
77
77
  }
@@ -234,7 +234,7 @@ export default {
234
234
 
235
235
  _options.plugins = [
236
236
  this.isRange
237
- ? new carbonFlatpickrRangePlugin({
237
+ ? carbonFlatpickrRangePlugin({
238
238
  input: this.$refs.todate,
239
239
  })
240
240
  : () => {},
@@ -300,7 +300,7 @@ export default {
300
300
  },
301
301
  checkHighlightPosition(newHiglight) {
302
302
  if (this.$refs.list && this.$refs.option && this.$refs.option[newHiglight]) {
303
- if (this.$refs.list.scrollTop > this.$refs.option[newHiglight].offsetTop) {
303
+ if (this.$refs.list.scrollTop >= this.$refs.option[newHiglight].offsetTop) {
304
304
  this.$refs.list.scrollTop = this.$refs.option[newHiglight].offsetTop;
305
305
  } else if (
306
306
  this.$refs.list.scrollTop + this.$refs.list.clientHeight <
@@ -105,6 +105,13 @@ export default {
105
105
  this.position();
106
106
  }
107
107
  },
108
+ dataVisible() {
109
+ if (this.dataVisible) {
110
+ this.$emit('tooltip-shown');
111
+ } else {
112
+ this.$emit('tooltip-hidden');
113
+ }
114
+ },
108
115
  },
109
116
  methods: {
110
117
  positionListen(on) {