Open dynomind-dev opened 1 year ago
Slot no-room-selected does not work.
no-room-selected
<template> <div> <vue-advanced-chat> <div slot="rooms-empty">Replace the empty rooms template</div> <div slot="no-room-selected">Replace the no room selected template</div> </vue-advanced-chat> </div> </template> <script> import { register } from 'vue-advanced-chat' register() export default {} </script> <style lang="scss"></style>
Slot content should be used for no room selected block.
no room selected
I checked it in vue sandbox too. https://github.com/dynomind-dev/vue-advanced-chat-sandbox/tree/issue/no-room-selected
It looks like adding v-show will fix this problem.
v-show
... <vue-advanced-chat v-show="isReady" ... mounted() { setTimeout(() => { this.isReady = true }) }, ...
Describe the bug
Slot
no-room-selected
does not work.Steps to reproduce
Expected behavior
Slot content should be used for
no room selected
block.Screenshots
Device (please complete the following information)
Additional context
I checked it in vue sandbox too. https://github.com/dynomind-dev/vue-advanced-chat-sandbox/tree/issue/no-room-selected