Skip to content

Commit

Permalink
Hotfix // Fix antd autoscroll warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinika committed Jul 19, 2023
1 parent ed15c7b commit f381677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subapps/dataExplorer/ProjectSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ export const ProjectSelector: React.FC<Props> = ({ onSelect }: Props) => {
allowClear={true}
clearIcon={<CloseOutlined data-testid="reset-project-button" />}
onClear={() => onSelect(undefined, undefined)}
placeholder={AllProjects}
aria-label="project-filter"
bordered={false}
className="search-input"
Expand All @@ -56,6 +55,7 @@ export const ProjectSelector: React.FC<Props> = ({ onSelect }: Props) => {
<Input
size="middle"
addonAfter={showClearIcon ? <CloseOutlined /> : <SearchOutlined />}
placeholder={AllProjects} // Antd doesn't like adding placeholder along with 'allowClear' in AutoComplete element, so it needs to be added to this Input element. (https://github.com/ant-design/ant-design/issues/26760).
/>
</AutoComplete>
</div>
Expand Down

0 comments on commit f381677

Please sign in to comment.