Fixed TreeSelect overflow issues

pull/5806/head
Cagatay Civici 2024-05-30 11:08:49 +03:00
parent 9246a14efa
commit e846c50124
3 changed files with 7 additions and 2 deletions

View File

@ -10,7 +10,7 @@ export default {
options: Array,
scrollHeight: {
type: String,
default: '14rem'
default: '20rem'
},
placeholder: {
type: String,

View File

@ -174,7 +174,7 @@ export interface TreeSelectProps {
options?: TreeNode[] | undefined;
/**
* Height of the viewport, a scrollbar is defined if height of list exceeds this value.
* @defaultValue 14rem
* @defaultValue 20rem
*/
scrollHeight?: string | undefined;
/**

View File

@ -103,6 +103,11 @@ const theme = ({ dt }) => `
overflow: hidden;
}
.p-treeselect-tree-container {
overflow: auto;
}
.p-treeselect-empty-message {
padding: ${dt('treeselect.empty.message.padding')};
background: transparent;