260724_01_ENH: KriAutoComplete 버그 수정 및 Datatable pined row 추가
This commit is contained in:
@@ -24,6 +24,7 @@ export interface KriAutoCompleteBaseProps<T> {
|
||||
withInfo?: boolean
|
||||
disabled?: boolean
|
||||
'aria-invalid'?: boolean
|
||||
modalPopover?: boolean
|
||||
}
|
||||
|
||||
export interface KriMultiSelectProps<T = unknown> extends KriAutoCompleteBaseProps<T> {
|
||||
@@ -73,6 +74,7 @@ export function KriMultiSelect<T = unknown>({
|
||||
onOptionsChange,
|
||||
disabled,
|
||||
'aria-invalid': ariaInvalid,
|
||||
modalPopover = true,
|
||||
}: KriMultiSelectProps<T>) {
|
||||
const options = React.useMemo(
|
||||
() => toOptions(items, getValue, getLabel, withInfo),
|
||||
@@ -104,6 +106,7 @@ export function KriMultiSelect<T = unknown>({
|
||||
deduplicateOptions
|
||||
disabled={disabled}
|
||||
aria-invalid={ariaInvalid}
|
||||
modalPopover={modalPopover}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
@@ -149,6 +152,7 @@ function KriSingleSelectInner<T>({
|
||||
clearValue = '__CLEAR__',
|
||||
disabled,
|
||||
'aria-invalid': ariaInvalid,
|
||||
modalPopover = true,
|
||||
}: KriSingleSelectProps<T>, forwardedRef: React.ForwardedRef<MultiSelectRef>) {
|
||||
const ref = React.useRef<MultiSelectRef>(null)
|
||||
React.useImperativeHandle(
|
||||
@@ -217,6 +221,7 @@ function KriSingleSelectInner<T>({
|
||||
disabled={disabled}
|
||||
aria-invalid={ariaInvalid}
|
||||
title={showSelectedTooltip ? selectedLabel ?? value : undefined}
|
||||
modalPopover={modalPopover}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user