Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ ui5-date-picker | Angular | ui5-date-picker value is not being applied on formControl]: #10258

Open
1 task done
OnesimoMartins opened this issue Nov 26, 2024 · 2 comments
Open
1 task done
Labels
author action bug This issue is a bug in the code

Comments

@OnesimoMartins
Copy link

OnesimoMartins commented Nov 26, 2024

Bug Description

Screenshot (79)

HTML :

   <ui5-form>
        <ui5-form-item column-span="1">
          <ui5-label slot="labelContent" show-colon >Código</ui5-label>
          <ui5-input ngDefaultControl [formControl]="form.controls.codigo">
          </ui5-input>
        </ui5-form-item>

        <ui5-form-item>
          <ui5-label slot="labelContent">Emissor da Ordem (Cliente)</ui5-label>
          <ui5-input ngDefaultControl [formControl]="form.controls.sdCliente">
            <ui5-icon slot="icon" name="value-help"/>
          </ui5-input>
        </ui5-form-item>

        <ui5-form-item>
          <ui5-label  slot="labelContent">Data do Pedido</ui5-label>
          <ui5-date-picker ngDefaultControl [formControl]="form.controls.dataPedido"
           style="width: 100%;"
          />
        </ui5-form-item>
</ui5-form>

TS:

@Component
export class OrdemVendaFormComponent {
  form = new FormGroup({
    sdCliente: new FormControl(""),
    codigo: new FormControl(""),
    dataPedido: new FormControl(""),
  })

  save(){
    console.log(this.form.value)
  }
}

Affected Component

ui5-date-picker

Expected Behaviour

apply the value 11/28/2024 in the formControl

Log Output, Stack Trace or Screenshots

No response

Priority

None

UI5 Web Components Version

2.2.0

Browser

Chrome, Edge

Operating System

Windows 11

Additional Context

No response

Organization

No response

Declaration

  • I’m not disclosing any internal or sensitive information.
@OnesimoMartins OnesimoMartins added the bug This issue is a bug in the code label Nov 26, 2024
@s-todorova s-todorova self-assigned this Nov 27, 2024
@OnesimoMartins OnesimoMartins changed the title [ ui5-date-picker | 2.2.0 | ui5-date-picker value is not being applied in Angular(18) formControl]: [ ui5-date-picker | Angular | ui5-date-picker value is not being applied on formControl]: Nov 27, 2024
@s-todorova
Copy link
Contributor

Hi @OnesimoMartins,

Thank you for reporting your findings. In order to process this issue more effectively, could you please provide us with a working example of your case? You can use stackblitz.

Best regards,
Siyana

@s-todorova s-todorova removed their assignment Nov 29, 2024
@OnesimoMartins
Copy link
Author

Hi @s-todorova , thank you for your attention, here is an example of the case: https://stackblitz.com/edit/stackblitz-starters-yo6tbx?file=src%2Fmain.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author action bug This issue is a bug in the code
Projects
None yet
Development

No branches or pull requests

2 participants