Skip to content

Commit af2a02f

Browse files
committed
feat(datalist): possibility to provide a hidden value
1 parent 5c1af7d commit af2a02f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/components/src/components/input/input.lite.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ export default function DBInput(props: DBInputProps) {
256256
'-option-' +
257257
option.value
258258
}
259-
value={option.value}>
259+
value={option.value}
260+
data-value={option.hiddenValue}>
260261
{option.label}
261262
</option>
262263
)}

packages/components/src/shared/model.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,7 @@ export type AriaControlsProps = {
694694
export type ValueLabelType = {
695695
value: string;
696696
label?: string;
697+
hiddenValue?: string;
697698
};
698699

699700
export type DocumentScrollState = {

0 commit comments

Comments
 (0)