feat(renderer): add shadcn select primitive

This commit is contained in:
2026-06-05 17:35:45 +05:30
parent 1d782a00e6
commit 0538aec02c
5 changed files with 286 additions and 0 deletions
+12
View File
@@ -43,3 +43,15 @@ if (typeof window !== 'undefined' && !window.ResizeObserver) {
}
window.ResizeObserver = ResizeObserver;
}
// Polyfill hasPointerCapture for @radix-ui/react-select (jsdom doesn't implement it)
if (typeof window !== 'undefined' && !Element.prototype.hasPointerCapture) {
Element.prototype.hasPointerCapture = function () {
return false;
};
}
// Polyfill scrollIntoView for @radix-ui/react-select (jsdom doesn't implement it)
if (typeof window !== 'undefined' && !Element.prototype.scrollIntoView) {
Element.prototype.scrollIntoView = function () {};
}