A drawer component for React.
Fix firefox scroll bug (#81)
Emil Kowalskica4f7cc2d190
diff --git a/src/index.tsx b/src/index.tsxindex c33950a..dac341c 100644--- a/src/index.tsx+++ b/src/index.tsx@@ -164,7 +164,7 @@ function Root({while (element) {// Check if the element is scrollableif (element.scrollHeight > element.clientHeight) {- if (element.role === 'dialog' || element.getAttribute('vaul-drawer')) return true;+ if (element.getAttribute('role') === 'dialog') return true;if (element.scrollTop !== 0) {lastTimeDragPrevented.current = new Date();