daybrush / selecto

Selecto.js is a component that allows you to select elements in the drag area using the mouse or touch.
https://daybrush.com/selecto
MIT License
2k stars 81 forks source link

When you enter the page for the first time, hold down the shift key to select components #143

Closed d2461379109 closed 1 year ago

d2461379109 commented 1 year ago

Environments

Description

https://github.com/daybrush/selecto/assets/101497201/2b403029-6bd7-41cb-ad6f-d00e86e77c42

daybrush commented 1 year ago

@d2461379109

The storybook is not in focus because it is inside an iframe. The focus condition should be clicked once. Therefore, the following phenomena may occur.

d2461379109 commented 1 year ago

Is there a way to get focus all the time? @daybrush

daybrush commented 1 year ago

@d2461379109

  1. You don't have to do preventDefault.
  2. It is not an iframe.
d2461379109 commented 1 year ago

@d2461379109

  1. You don't have to do preventDefault.
  2. It is not an iframe.

Thank you! I found the cause. I set up keyContainer and the problem was fixed.