selecto icon indicating copy to clipboard operation
selecto copied to clipboard

Add prop to limit select area bounds to the dragContainer

Open nelsondude opened this issue 3 years ago • 2 comments

Environments

  • Framework name: React
  • Framework version: Latest
  • Component name: React Selecto component
  • Component version:
  • Testable Address(optional):

Description

Would it be possible to add a prop to selecto like limitDragArea so that after a drag has started inside the dragContainer, then the selecting area cannot go outside of the dragContainer? Currently, you can't start a select outside a dragContainer (which is great) but you can start a select inside a dragContainer and then drag outside of that container. This prop would essentially limit the bounds to the bounds of the dragContainer specified

nelsondude avatar Sep 29 '20 16:09 nelsondude

@nelsondude

  • selecto 1.7.1
  • react-selecto 1.7.1
  • preact-selecto 1.6.1
  • ngx-selecto 1.7.1
  • lit-selecto 1.7.1
  • vue-selecto 1.7.1
  • svelte-selecto 1.7.1

selecto new version is released. Use boundContainer option. Thank you 👍

daybrush avatar Oct 20 '20 19:10 daybrush

Thank you!

nelsondude avatar Oct 21 '20 00:10 nelsondude