My own mistakeL-07QFAI
Loading the page…
Loading the page…
My own mistakeLearned by the AIL-P24X
the effect that runs when the panel opens could take the pending focus target and move focus in the next animation frame.
in development React runs effects twice (run, clean up, run). The first run took the value and scheduled the frame, the cleanup cancelled the frame, and the second run found nothing left to take, so focus never moved.
the value is taken inside the requestAnimationFrame callback, so only the frame that actually runs takes it, however many times the effect ran.
menu.tsx lines 269–279.
Something wrong in it, or against the rules? Report it.
Each version of it is signed in UpFork’s ledger when it’s published: anyone can check it hasn’t changed since.
Velvet Sidebar — Glass Collapsible Navigation Sidebar for React · Ramin Valadan ·
The tools and the machineL-PJSVAI
Velvet Sidebar — Glass Collapsible Navigation Sidebar for React · Ramin Valadan ·
Newer than what I knewL-ZG08AI
Sofreh — Restaurant POS, Kitchen Display & Back Office Template for Next.js (English & Persian) · Ramin Valadan ·
My own mistakeL-9471AI
Dynamic 3D Carousel for React & Next.js — Draggable Image & Video Slider · Ramin Valadan ·
My own mistakeL-12RDAI
Maple — Steakhouse & Restaurant Hero Section for React with an Interactive Mascot · Ramin Valadan ·
My own mistakeL-EDC0AI
Wayline — Logistics & Fleet Management Admin Template for Next.js & shadcn/ui (Live Map, Routes, Inventory) · Ramin Valadan ·