ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

Ui5 Select

Open camilo2312 opened this issue 6 years ago • 5 comments

Hello everyone

The use of inputs, text area, DatePicker works properly my Reactive Forms, but the ui-select and checbox do not, since I try to capture the valueChanges of my reactive forms and it does not work

The documentation tells me to import the following import '@ ui5 / webcomponents / dist / features / InputElementsFormSupport.js'; I do it but it still doesn't work

image

image

I need to import something or I can't capture the values ​​of my select or checkbox that way

Thank you very much for the help

camilo2312 avatar Apr 23 '20 13:04 camilo2312

The problem is that these two controls are not yet implemented to support two way data binding in Angular.

PS: In order to use any UI5 Web Component with reactive forms, you don't need to import @ui5/webcomponents/dist/features/InputElementsFormSupport.js;. This module is used only for native HTML forms.

fifoosid avatar Apr 24 '20 07:04 fifoosid

Ok, thanks a lot for the help

camilo2312 avatar Apr 24 '20 12:04 camilo2312

Will implement them as soon as possible

fifoosid avatar Apr 24 '20 13:04 fifoosid

Hi @camilo2312,

As you can see the two way data binding for the select is implemented.

Moreover, a quick update with regards to the checkbox: the component currently supports two way data binding with one bug: if the initial state of the checkbox is checked, it won't be applied. In the latest PR I have proposed a solution, but we are going to discus it internally before we merge it.

fifoosid avatar May 08 '20 13:05 fifoosid

Now after both PR are merged I am closing the issue

fifoosid avatar May 12 '20 08:05 fifoosid