Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/copy/__test__/createFakeElement.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('createFakeElement', () => {
expect(element.style.position).toBe('absolute');
expect(element.style.left).toBe('-9999px');
expect(element.style.opacity).toBe('0');
expect(element.style.visibility).toBe('hidden');
expect(element.style.visibility).not.toBe('hidden');
});

test('sets correct styles in RTL mode', () => {
Expand Down
1 change: 0 additions & 1 deletion src/copy/createFakeElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ function createFakeElement(value: string): HTMLTextAreaElement {
* 将元素水平移出屏幕
*/
Object.assign(fakeElement.style, {
visibility: 'hidden',
opacity: '0',
position: 'absolute',
top: `${window.pageYOffset || document.documentElement.scrollTop}px`,
Expand Down
Loading