Comments (6)
Had a quick test with the reproduction link, seems like happy-dom
doesn't behave as expected.
I've added a console.log
of the state of html after clicking Toggle
, and realized that something was off. The data-state
somehow was closed
.
https://stackblitz.com/edit/github-zsxecm-dphr8r?file=src%2Fcomponents%2F__tests__%2FRadixPopover.spec.ts
I tested the same on the current repo (using jsdom
), seems to be working fine.
from radix-vue.
Oh you are right 🤦🏼 Apologies I must have overlooked that jsdom works without the Teleport stub.
Do you have any idea what kind of APIs might not be implemented in happy-dom? I've had a look, but my feeling is that it must come from floating-ui already, because neither Popover, Popper or Teleport contain any DOM related APIs that might be missing.
from radix-vue.
No sure tho, not quite familiar with happy-dom
. In jsdom
there's error being logged when DOM API were missing.
Perhaps there's a way to log that in happy-dom
too?
from radix-vue.
I'll have a look 👍🏼 So far I couldn't make it log any error which makes me thing floating-ui swallows it somewhow.
What's your position on the Teleport stub? If you don't consider that a bug I'd go ahead and close this one and make sure to create a follow-up either for happy-dom or floating ui.
from radix-vue.
I'll take a look too. Let's keep this open for now so anyone using happy-dom
for testing can comment if they have any resolution for this 😁
from radix-vue.
Related Issues (20)
- [Feature]: DateField locale vs language vs format HOT 3
- [Bug]: `radix-vue/resolver` type export error
- [Feature]: Grid System Support HOT 2
- [Feature]: Add unit / pixel unit for panel size
- [Feature]: Expose Toast remaining duration
- [Bug]: Popover component misses aria-label HOT 1
- [Feature]: Consider switching tabs on `@mouseup.left` instead of `@mousedown.left` HOT 2
- [Bug]: Combobox filtering stops working with a large amount of items
- [Feature]: the ability to disable switching the focus of a document to a DropdownMenuItem on hover
- [Bug]: Tabs and Resizable components do not work when I set `e.preventDefault()` in the `pointerdown` function HOT 2
- [Bug]: Tooltip not showing up when rendered on the server HOT 2
- [Bug]: Multiple tooltips displayed at once because of grace area
- [Feature]: Add `data-placeholder` to date picker input HOT 3
- [Bug]: Tooltip not showing up when rendered on the server HOT 3
- [Bug]: Tooltips inside Collapible (Precense) extremely slow to render. HOT 1
- [Bug]: Setting `disabled` for `RadioGroupRoot` won't disable individual `RadioGroupItem`
- [Bug]: Incompatibility between VueUse useTextDirection and the dir prop of ConfigProvider HOT 1
- [Feature]: Ability to select the first item with Enter keydown even if it is not highlighted on Listbox HOT 1
- [Bug][Combobox]: Incorrect `searchTerm` initialization HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from radix-vue.