useDark's disableTransition configuration does not work
tangllty opened this issue · comments
Tang commented
Describe the bug
I just discovered that the transition animation of el-switch
is gone. I searched the issues of vueuse and found that I need to pass this parameter disableTransition: false
(#3063 (comment)), but when I passed it, there was still no transition animation.
const isDark = useDark({ disableTransition: false })
When using the
ref
function to switch, the transition animation is normal.
Reproduction
https://github.com/tangllty/tang-vue/blob/master/src/layout/components/Navbar/index.vue#L79
System Info
System:
OS: Linux 6.8 Arch Linux
CPU: (8) x64 Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz
Memory: 2.32 GB / 15.36 GB
Container: Yes
Shell: 5.2.26 - /bin/bash
Binaries:
Node: 18.19.0 - ~/.nvm/versions/node/v18.19.0/bin/node
Yarn: 1.22.21 - /usr/bin/yarn
npm: 10.2.3 - ~/.nvm/versions/node/v18.19.0/bin/npm
pnpm: 8.15.2 - /usr/bin/pnpm
Browsers:
Chromium: 123.0.6312.46
npmPackages:
@vueuse/core: ^10.9.0 => 10.9.0
vue: ^3.4.21 => 3.4.21
Used Package Manager
pnpm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.
Tang commented
I decided not to use this function.