Moveable: After making element group ,not able to make inside element editable by contentEdtiable="true", suggest a solution for that because non of clicking events work on that

Created on 28 Aug 2020  路  14Comments  路  Source: daybrush/moveable

Environments

  • Framework name: ReactJS
  • Framework version: 16.13.1
  • Moveable Component version: react-selecto + react-moveable

Description

i try to make group inner element after click or any event editable, but non of event work for me , i want to make element editable by contentEdtiable="true", please suggest solution for that...

Feature complete enhancement

Most helpful comment

@Nazakatalikharal

Update 0.22.0-rc10(beta)

If you want to stop the drag event, return false.

Use passDragArea instead of dragArea and add blur event.

https://codesandbox.io/s/lucid-wood-tr1m7?file=/src/App.js

All 14 comments

@Nazakatalikharal
Could you ever share your address again?

sorry... which address are you talking about ?

if you're talking about codesandbox address then here it is https://codesandbox.io/s/sparkling-darkness-or805

@Nazakatalikharal

Update react-moveable 0.22.0-rc9 and try this code:
onClick, checkInput
https://codesandbox.io/s/proud-pond-nf4jb?file=/src/App.js

group1

2020-09-01_12-19-46

@Nazakatalikharal
Add dragArea={!this.state.groupEditing}

@daybrush
group is editable now but after editing when we click on others element and click again on same edited element , this error shows
https://www.screencast.com/t/sWVyvj5X6
https://codesandbox.io/s/amazing-driscoll-52yg2?file=/src/App.js

error1

@daybrush
after editing inner group span , no group dragging works, also inner group only single span is editable not multiple

https://www.screencast.com/t/lvmYMODSRJ

https://codesandbox.io/s/vibrant-leakey-b8byo?file=/src/App.js

how i can stop "onDragGroupStart" with , this.moveableRef.current , kindly also tell how i can stop react-selecto "onDragStart" with this.selectoRef ...

@Nazakatalikharal

Update 0.22.0-rc10(beta)

If you want to stop the drag event, return false.

Use passDragArea instead of dragArea and add blur event.

https://codesandbox.io/s/lucid-wood-tr1m7?file=/src/App.js

@daybrush
passDragArea work well currently if their'll be issues i'll let you know, thanks for you guidance and support

  • moveable 0.19.1
  • react-moveable 0.22.3
  • preact-moveable 0.21.3
  • ngx-moveable 0.15.1
  • svelte-moveable 0.10.1

moveable's official new version is released. Check it again. Thank you :)

Was this page helpful?
0 / 5 - 0 ratings