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

Commit

Permalink
FDS-668 optionsMaxHeight added in suggest field of f-form-builder (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
vikas-cldcvr authored May 15, 2024
1 parent 8b03c25 commit 2b1ea4e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
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

0 comments on commit 2b1ea4e

Please sign in to comment.