Handle On Border

Open
#357 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript, react
Domain
frontend

Research direction

Start by tracing the Draggable handle prop in the nested Draggable, ResizableBox, and TextEdit example from the issue. Determine whether the ResizableBox border can be used as the drag handle while the inner editor remains usable; done would be a documented or implemented way to support that behavior.

Written by the indexing model from the issue text.

Description

I am trying to use this component in a manner like so:
`<Draggable handle = ".handle" {...dragHandlers}>


                <ResizableBox width = {this.state.width} height = {this.state.height} onResize = {this.onResize}>
                  <TextEdit
                    style = {{
                      zIndex: 100
                    }}
                    fontSize = {this.props.fontSize}/>
                </ResizableBox>
              
            </div>
          </div>
        </Draggable>`

My issue is that I would like to set the border of my "ResizableBox" as the handle for dragging, while leaving the inner Text Editor open. My question is then, is it possible to set the handle to a draggable as the border of a div underneath?

Dominant language
JavaScript
Stars
9.3k
Forks
1k
Avg merge
3d 8h
Merged PRs (30d)
4

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from react-grid-layout/react-draggable

All issues in react-grid-layout/react-draggable

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.