Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with no-room-selected slot #464

Open
dynomind-dev opened this issue Jul 27, 2023 · 1 comment
Open

Issue with no-room-selected slot #464

dynomind-dev opened this issue Jul 27, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@dynomind-dev
Copy link

Describe the bug

Slot no-room-selected does not work.

Steps to reproduce

<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>

Expected behavior

Slot content should be used for no room selected block.

Screenshots

image

Device (please complete the following information)

  • OS: Windows 11
  • Browser: Chrome 115.0.5790.110 (Official Build) (64-bit)
  • Package version: 2.0.7

Additional context

I checked it in vue sandbox too. https://github.com/dynomind-dev/vue-advanced-chat-sandbox/tree/issue/no-room-selected

@dynomind-dev dynomind-dev added the bug Something isn't working label Jul 27, 2023
@edwinofsakh
Copy link

It looks like adding v-show will fix this problem.

...
   <vue-advanced-chat
      v-show="isReady"    
...   
   mounted() {
      setTimeout(() => {
         this.isReady = true
      })
   },
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants