Skip to content

Commit

Permalink
test(affix): fix query selector error (ant-design#37414)
Browse files Browse the repository at this point in the history
  • Loading branch information
RexSkz authored Sep 6, 2022
1 parent 175e0d1 commit df98cbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/affix/__tests__/Affix.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ describe('Affix Render', () => {
describe('updatePosition when target changed', () => {
it('function change', async () => {
document.body.innerHTML = '<div id="mounter" />';
const container = document.querySelector('#id') as HTMLDivElement;
const container = document.getElementById('mounter');
const getTarget = () => container;
let affixInstance: InternalAffixClass;
const { rerender } = render(
Expand Down

0 comments on commit df98cbb

Please sign in to comment.