Issue T5408
Visible to All Users

Vue: undefined click handler

created 5 years ago

Hi,

there seems to be an issue with survey-vue for some surveys. An error appears in the console: "[Vue warn]: Invalid handler for event "click": got undefined"

If you select any checkbox, another error appears and after that you can not check any other options.

Here is an example: https://plnkr.co/edit/BJDII19UzHzTGsZm

Thanks!

Answers approved by surveyjs Support

created 5 years ago

Hello Hendrik,
Yes, I can see the issue. We will work on the fix.

Thank you,
Andrew
SurveyJS Team

    Comments (3)

      Hello Hendrik,
      It is very odd issue. I was able to fix it after I found that it happens in modern theme only. We need to run more our E2E tests in modern theme. Here is the commit that fix the issue. It is hard to believe that there is any connection with the issue…

      Thank you,
      Andrew
      SurveyJS Team

      HH HH
      Hendrik Hansmeier 5 years ago

        Hello Andrew,

        I took a look at this. If I change to the default theme, the error messages still appear. The only thing that changes is that the checkboxes still work. But the error only occurs if there is some expression question in the survey.

        So I made a new example limited to the expression question with default theme: https://plnkr.co/edit/ruWZr54Jk1VDjkjF

        Interesting fact: In the survey creator this error does not occur.

        Maybe the problem is, that you return undefined (instead of a function) in clickTitleFunction if the question has no input, which is the case for the expression question. And this undefined value is passed to the click handler. So maybe it helps if you return an empty function instead? Not sure if that leads to some other problems.

        Thanks!

          Hello Hendrik,
          I just test it with my fix and it works fine. We decided to release v1.8.8 today. The fix is coming. You can use v1.8.1 as another alternative.

          Thank you,
          Andrew
          SurveyJS Team