Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

FDS-668 optionsMaxHeight added in suggest field of f-form-builder #271

Merged
merged 1 commit into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/flow-form-builder/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

# Change Log

## [2.4.2] - 2024-05-15

### Patch Changes

- `optionsMaxHeight` property added for suggest field.

## [2.4.1] - 2024-04-22

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion packages/flow-form-builder/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ollion/flow-form-builder",
"version": "2.4.1",
"version": "2.4.2",
"description": "Form builder for the flow design system",
"module": "dist/flow-form-builder.es.js",
"main": "dist/flow-form-builder.cjs.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default function (
.suffixWhen=${field.suffixWhen}
.suggestWhen=${ifDefined(field.suggestWhen)}
max-length=${ifDefined(field.maxLength)}
.optionsMaxHeight=${field.optionsMaxHeight}
?loading=${field.loading ?? false}
?disabled=${field.disabled ?? false}
?clear=${field.clear ?? true}
Expand Down
1 change: 1 addition & 0 deletions packages/flow-form-builder/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export type FormBuilderSuggestField = FormBuilderBaseField & {
loading?: boolean;
readonly?: boolean;
clear?: boolean;
optionsMaxHeight?: string;
suggestions?: FSuggestSuggestions;
suffixWhen?: FormBuilderSuffixCondition;
suggestWhen?: FSuggestWhen;
Expand Down
1 change: 1 addition & 0 deletions stories/flow-form-builder/f-formbuilder-field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ const field: FormBuilderField = {
title: "Click inside field to see suggestions",
description: "Select suggestion to fill value"
},
optionsMaxHeight: "100px",
suggestWhen: () => true,
suggestions: [
"Suggestion 1",
Expand Down
Loading