juzser / vue-bot-ui

For the one who is finding a customizable chatbot UI.
MIT License
155 stars 32 forks source link

Message Options bug #10

Closed enorenio closed 3 years ago

enorenio commented 3 years ago

Message Options becomes unclickable after closing and re-opening board. Reproducible in demo page. Steps to reproduce:

  1. Open board.
  2. Send messages till bot replies with message with options.
  3. Close the board
  4. Open it again
  5. Click on any message option. It will not work.

I have already found out how to fix this, so I'm going to create PR soon.

enorenio commented 3 years ago

Also there's no need for EventBus.$on('select-button-option', this.selectOption) in create hook. I just noticed that it's not needed. I might be wrong, so can you please check it, @juzser ? It's 139th line of ./src/components/BotUI.vue

juzser commented 3 years ago

Thank you @enorenio I think I see what you mean about the created hook. With your new PR, we can remove the eventBus in created hook. Let me check around.

juzser commented 3 years ago

Fixed on v0.2.6