We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5943db commit de0e277Copy full SHA for de0e277
.changeset/smart-oranges-peel.md
@@ -0,0 +1,6 @@
1
+---
2
+"@nextui-org/navbar": patch
3
4
+
5
6
+Resolving the issue preventing the navbar from opening(#4345)
packages/components/navbar/src/use-navbar.ts
@@ -161,6 +161,11 @@ export function useNavbar(originalProps: UseNavbarProps) {
161
ref: domRef,
162
onResize: () => {
163
const currentWidth = domRef.current?.offsetWidth;
164
+ const scrollWidth = window.innerWidth - document.documentElement.clientWidth;
165
166
+ if (currentWidth && currentWidth + scrollWidth == prevWidth.current) {
167
+ return;
168
+ }
169
170
if (currentWidth !== prevWidth.current) {
171
updateWidth();
0 commit comments