Revert "Fix: close select dropdown when focus is shifted (#19764)" (#19838)

This reverts commit 7b495072e094d71c9248225723ff5a3abd0479af.
This commit is contained in:
Karan Hotchandani 2025-02-17 19:33:19 +05:30 committed by GitHub
parent 50f05f32dc
commit c1e895aca8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 0 additions and 29 deletions

View File

@ -40,7 +40,6 @@ import {
import { CustomPropertyTypeByName } from '../../utils/customProperty';
import {
addMultiOwner,
dropdownVisibility,
removeOwner,
removeOwnersFromList,
} from '../../utils/entity';
@ -220,14 +219,6 @@ entities.forEach((EntityClass) => {
);
});
test("Tags and Glossary Term dropdown shouldn't be visible on tab change", async ({
page,
}) => {
await dropdownVisibility(page, 'tags');
await page.getByRole('tablist').getByRole('tab').first().click();
await dropdownVisibility(page, 'glossary');
});
// Run only if entity has children
if (!isUndefined(entity.childrenTabId)) {
test('Tag Add, Update and Remove for child entities', async ({

View File

@ -709,24 +709,6 @@ export const removeGlossaryTermFromChildren = async ({
}
};
export const dropdownVisibility = async (page: Page, tagType: string) => {
await page
.getByTestId('entity-right-panel')
.getByTestId(`${tagType}-container`)
.getByTestId('add-tag')
.click();
await page.waitForSelector(
'.ant-select-dropdown [data-testid="saveAssociatedTag"]',
{ state: 'visible' }
);
await expect(page.getByTestId('saveAssociatedTag')).toBeVisible();
await page.getByTestId('activity_feed').click();
await expect(page.getByTestId('saveAssociatedTag')).not.toBeVisible();
};
export const upVote = async (page: Page, endPoint: string) => {
const patchRequest = page.waitForResponse(`/api/v1/${endPoint}/*/vote`);

View File

@ -315,7 +315,6 @@ const AsyncSelectList: FC<AsyncSelectListProps & SelectProps> = ({
style={{ width: '100%' }}
tagRender={customTagRender}
onChange={handleChange}
onDropdownVisibleChange={(open) => !open && onCancel?.()}
onInputKeyDown={(event) => {
if (event.key === 'Backspace') {
return event.stopPropagation();

View File

@ -328,7 +328,6 @@ const TreeAsyncSelectList: FC<Omit<AsyncSelectListProps, 'fetchOptions'>> = ({
treeData={treeData}
treeExpandedKeys={isEmpty(searchOptions) ? undefined : expandedRowKeys}
onChange={handleChange}
onDropdownVisibleChange={(open) => !open && onCancel?.()}
onSearch={onSearch}
onTreeExpand={setExpandedRowKeys}
{...props}