S
S
sinevik2018-02-02 17:36:45
React
sinevik, 2018-02-02 17:36:45

Reactjs question to the experts, why is the limit on the left position not working?

Run the code. Start dragging the green block, note that it is clearly fixed in height, you cannot move it up or down. But on the left side, such a fixation does not work, please tell me why? If you bring the block to the left
https://codepen.io/Sinevik/pen/KQVaGQ
K4G87tM7QvOtCOS1FEgtsw.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-02-02
@sinevik

Somehow you have everything verbose and greatly overcomplicated. Why completely override obj and call setState multiple times? Maybe you should create an object once, immediately with the property values ​​you need? Somehow so .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question