mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-12-04 22:31:33 +09:00
## Description rename of #3609 ## New - Native Select ## Changes - Improved detection algorithm to include invisible elements (like `option` or `display:none`). - Added interceptor to handle pointer down events, preventing select from opening. - Enhanced element selection on canvas to support `display:none` and option selection. - Fixed prop types generation (previously, the value property was broken). - Memory props has effect on canvas only - Recreate component on Canvas in case of defaultValue has changed ## Steps for reproduction Add `Select` see it works ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 5de6) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env` file
5 lines
138 B
TypeScript
5 lines
138 B
TypeScript
import type { Hook } from "@webstudio-is/react-sdk";
|
|
import { hooksSelect } from "./select";
|
|
|
|
export const hooks: Hook[] = [hooksSelect];
|