Here are the steps to fix ant design Select
component not copiable issue using pnpm patch.
╭─root@HP ~/personal/antd-select-copiable ‹master›
╰─# pnpm patch antd
You can now edit the following folder: /tmp/e783e387c49ac2b86aeb04c9235729e8
Once you're done with your changes, run "pnpm patch-commit /tmp/e783e387c49ac2b86aeb04c9235729e8"
code /tmp/e783e387c49ac2b86aeb04c9235729e8
find https://github.com/ant-design/ant-design/issues/40421
,
delete code userSelect: 'none'
pnpm patch-commit /tmp/e783e387c49ac2b86aeb04c9235729e8
╭─root@HP ~/personal/antd-select-copiable ‹master●›
╰─# pnpm patch rc-select
You can now edit the following folder: /tmp/e2859d70b36cfa97375a194ae4ea0db0
Once you're done with your changes, run "pnpm patch-commit /tmp/e2859d70b36cfa97375a194ae4ea0db0"
code /tmp/e2859d70b36cfa97375a194ae4ea0db0
find if (event.target !== inputRef.current && !inputMouseDown && !( 'combobox' && disabled))
replace to if (event.target !== inputRef.current && !inputMouseDown && !disabled)
pnpm patch-commit /tmp/e2859d70b36cfa97375a194ae4ea0db0
rm -rf node_modules/.vite