Fixed TreeSelect overflow issues
parent
9246a14efa
commit
e846c50124
|
@ -10,7 +10,7 @@ export default {
|
||||||
options: Array,
|
options: Array,
|
||||||
scrollHeight: {
|
scrollHeight: {
|
||||||
type: String,
|
type: String,
|
||||||
default: '14rem'
|
default: '20rem'
|
||||||
},
|
},
|
||||||
placeholder: {
|
placeholder: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|
|
@ -174,7 +174,7 @@ export interface TreeSelectProps {
|
||||||
options?: TreeNode[] | undefined;
|
options?: TreeNode[] | undefined;
|
||||||
/**
|
/**
|
||||||
* Height of the viewport, a scrollbar is defined if height of list exceeds this value.
|
* Height of the viewport, a scrollbar is defined if height of list exceeds this value.
|
||||||
* @defaultValue 14rem
|
* @defaultValue 20rem
|
||||||
*/
|
*/
|
||||||
scrollHeight?: string | undefined;
|
scrollHeight?: string | undefined;
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -103,6 +103,11 @@ const theme = ({ dt }) => `
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.p-treeselect-tree-container {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.p-treeselect-empty-message {
|
.p-treeselect-empty-message {
|
||||||
padding: ${dt('treeselect.empty.message.padding')};
|
padding: ${dt('treeselect.empty.message.padding')};
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
|
Loading…
Reference in New Issue