Skip to content

Commit

Permalink
fix(*): rollback #4746 and fix textarea clear spec
Browse files Browse the repository at this point in the history
  • Loading branch information
YSMJ1994 committed Feb 22, 2024
1 parent 0e8f458 commit e486542
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/input/__tests__/textarea-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe('TextArea', () => {
}
mount(<Demo />, { attachTo: parent });
await delay(100);
const btn = parent.querySelector('.next-input-clear');
const btn = parent.querySelector('.next-input-textarea-clear');
ReactTestUtils.Simulate.click(btn);
assert(ref.current.value === '');
});
Expand Down
2 changes: 1 addition & 1 deletion components/overlay/overlay.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ class Overlay extends Component {
});

if (align) {
const shouldUpdatePosition = (status === 'mounting' || status === 'none') && propShouldUpdatePosition;
const shouldUpdatePosition = status !== 'leaving' && propShouldUpdatePosition;
children = (
<Position
{...{
Expand Down

0 comments on commit e486542

Please sign in to comment.