Skip to content

Commit 5fe0b8b

Browse files
committed
fix(ui5-input): enhance documentation
1 parent 4de2083 commit 5fe0b8b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/main/src/Input.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ type InputSuggestionScrollEventDetail = {
170170
* The `ui5-input` component allows the user to enter and edit text or numeric values in one line.
171171
*
172172
* Additionally, you can provide `suggestionItems`,
173-
* that are displayed in a popover right under the input.
173+
* that are displayed in a popover right under the input. Keep in mind that `ui5-input` with type `Number` does not support suggestions.
174174
*
175175
* The text field can be editable or read-only (`readonly` property),
176176
* and it can be enabled or disabled (`disabled` property).
@@ -376,6 +376,7 @@ class Input extends UI5Element implements SuggestionComponent, IFormInputElement
376376
* and the current language settings, especially for type `Number`.
377377
* - The property is mostly intended to be used with touch devices
378378
* that use different soft keyboard layouts depending on the given input type.
379+
* - Type `Number` does not support suggestions.
379380
* @default "Text"
380381
* @public
381382
*/
@@ -588,6 +589,8 @@ class Input extends UI5Element implements SuggestionComponent, IFormInputElement
588589
*
589590
* **Note:** The `<ui5-suggestion-item>`, `<ui5-suggestion-item-group>` and `ui5-suggestion-item-custom` are recommended to be used as suggestion items.
590591
*
592+
* **Note:** Input with type `Number` does not support suggestions.
593+
*
591594
* @public
592595
*/
593596
@slot({ type: HTMLElement, "default": true })

0 commit comments

Comments
 (0)