Vuesax: vs-alert: Cannot read property 'scrollHeight' of undefined"

Created on 15 May 2019  路  3Comments  路  Source: lusaxweb/vuesax

Getting an error on vs-alert component when "active" prop is false.

found in ---> at vsAlert.vue

  • Your OS: Linux Mint 19.1 Cinnamon
  • Node.js version: v10.15.3
  • Vuesax version: "vuesax": "^3.8.62",
  • Browser version: Versi贸n 0.64.75 Chromium: 74.0.3729.131 (Build oficial) (64 bits)
  • Which package manager did you use for the install?: NPM

Most helpful comment

getting the same thing

resolved by wrapping alert in container with v-show but that eliminates the need for active and is redundant

All 3 comments

getting the same thing

resolved by wrapping alert in container with v-show but that eliminates the need for active and is redundant

same issue but v-show didn't help me

at the moment, the only solution that I found is to comment out a the next piece of code in vuesax.common.js , VsAlert component into mounted:
var _this = this; this.$nextTick(function () { var h = _this.$refs.alert.scrollHeight; _this.$refs.alert.style.height = h + 'px'; });

I know that this is not entirely correct, but so far this is the only way that has solved the error problem for me

Same issue here, when vs-alert is inside v-if...v-else it throws this error.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MeastBlue picture MeastBlue  路  3Comments

bigperson picture bigperson  路  3Comments

mjmnagy picture mjmnagy  路  3Comments

CaptainCannabis picture CaptainCannabis  路  3Comments

jsinhSolanki picture jsinhSolanki  路  3Comments