From aa0056fc1f549c559d3e6fc1f236a1c21c6729bd Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Thu, 9 Jun 2022 14:23:22 +0200 Subject: [PATCH] Only render the `Dialog` on the client (#1566) * only render the Dialog on the client * update changelog --- packages/@headlessui-vue/CHANGELOG.md | 1 + .../src/components/dialog/dialog.test.ts | 34 ++++++++++++------- .../src/components/dialog/dialog.ts | 9 ++++- 3 files changed, 30 insertions(+), 14 deletions(-) diff --git a/packages/@headlessui-vue/CHANGELOG.md b/packages/@headlessui-vue/CHANGELOG.md index 574417580..0a0edfb67 100644 --- a/packages/@headlessui-vue/CHANGELOG.md +++ b/packages/@headlessui-vue/CHANGELOG.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Support `` children when using `as="template"` ([#1548](https://github.com/tailwindlabs/headlessui/pull/1548)) - Improve outside click of `Dialog` component ([#1546](https://github.com/tailwindlabs/headlessui/pull/1546)) - Detect outside clicks from within `