mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-09-29 07:56:37 +08:00
e194813f3b
* fix(dialog): prevent auto focus restore on close to avoid page scroll When a modal is closed, Radix Dialog by default restores focus to the trigger element. This causes the page to scroll to that element if it's not in the viewport, leading to unexpected scrolling behavior after editing forwards or other items. Entire-Checkpoint: 78b48b74a841 * fix(modal): prevent auto focus restore on close in ModalContent Ensure onCloseAutoFocus is applied after props spread to prevent override. This fixes page scroll to top after closing modal on second edit.
Vite & HeroUI Template
This is a template for creating applications using Vite and HeroUI (v2).
Technologies Used
How to Use
To clone the project, run the following command:
git clone https://github.com/frontio-ai/vite-template.git
Install dependencies
You can use one of them npm, yarn, pnpm, bun, Example using npm:
npm install
Run the development server
npm run dev
Setup pnpm (optional)
If you are using pnpm, you need to add the following code to your .npmrc file:
public-hoist-pattern[]=*@heroui/*
After modifying the .npmrc file, you need to run pnpm install again to ensure that the dependencies are installed correctly.
License
Licensed under the MIT license.