fix(TreeSelect): display blank issue fix

pull/8155/head
yusongh 2025-05-06 21:36:38 +08:00
parent aa211fd789
commit 458f46f0b4
1 changed files with 5 additions and 1 deletions

View File

@ -23,7 +23,11 @@ const Filter: FunctionalComponent<FillerProps> = (
};
if (offset !== undefined) {
outerStyle = { height: `${height}px`, position: 'relative', overflow: 'hidden' };
outerStyle = {
height: `${height}px`,
...(offset === 0 ? {} : { position: 'relative' }),
overflow: 'hidden',
};
innerStyle = {
...innerStyle,