react-draggable icon indicating copy to clipboard operation
react-draggable copied to clipboard

Bounds worked not as expected

Open AhmadYoussef opened this issue 3 years ago • 1 comments
trafficstars

Problem Report

I've tried putting two draggable elements inside each other and bounds them to the mainContainer but unfortunately, it didn't work as expected and I'd like to know if is this a bug or if am I doing it wrong?

example

      <Draggable {...dragHandlers} bounds={"#MainContainer"}>
        <div className="box">
          <div>I</div>
          <Draggable {...dragHandlers} bounds={"#MainContainer"}>
            <strong id="anywhere" style={{ display: "inline-block" }}>
              Move me Anywhere
            </strong>
          </Draggable>
          <div> be dragged anywhere</div>
        </div>
      </Draggable>
    </div>

AhmadYoussef avatar Aug 22 '22 11:08 AhmadYoussef

Hi there! What were you expecting to happen? Thanks,

cwaj400 avatar Mar 19 '23 12:03 cwaj400