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

[BUG] @prizm-ui/components - Label в prizm-input-layout не изменяет empty-стиль при использовании флага emitEvent: false #723

Closed
1 of 9 tasks
MisterWind opened this issue Sep 14, 2023 · 0 comments · Fixed by #795
Assignees
Labels
estimate:sp3 Story Point - 3 october2023 priority:high level of urgency - high state:ready ready for release (pass tested) type:bug Something isn't working
Milestone

Comments

@MisterWind
Copy link
Contributor

MisterWind commented Sep 14, 2023

Библиотека

Выберите нужное отметив галочку [x]

  • @prizm-ui/core
  • @prizm-ui/components
  • @prizm-ui/install
  • @prizm-ui/icons
  • @prizm-ui/flag-icons
  • @prizm-ui/theme
  • @prizm-ui/charts
  • @prizm-ui/ast
  • @prizm-ui/nx-plugin

Компонент

PrizmInputLayoutComponent

Версия

Dependencies:

➜ npm ls @prizm-ui/components

@prizm-ui/components 1.4.4

Проект в котором используется Prizm

  • Редактор отчетов Datalink

Скриншот / видео проблемы

image

bandicam.2023-09-14.14-56-06-963.mp4

Воспроизведение проблемы

https://stackblitz.com/edit/ngx-14-input-layout-emit-event

Описание проблемы

При использовании флага emitEvent: false при работе с формами в prizm-input-layout у label не убирается стиль

Шаги воспроизведения:

  1. В .html файле добавить следующий код:
<prizm-input-layout label="Заголовок">
  <input [formControl]="control" prizmInput />
</prizm-input-layout>

<p>
  <button (click)="changeControl()" prizmButton>Change control form!</button>
</p>
  1. В .ts файле добавить следующий код:
  public changeControl(): void {
    this.control.setValue(`New random text_${ Math.random() } control from method!`, { emitEvent: false });
  }
  1. Нажать на кнопку Change control form!

Ожидаемый результат: при установке значения заголовок поднялся вверх, в шаблоне стиль empty убрался.
Фактический результат: заголовок не изменяет своего положения, в шаблоне остается стиль empty.

@Mainkira Mainkira added the type:bug Something isn't working label Sep 15, 2023
@ZurabDev ZurabDev added the priority:high level of urgency - high label Oct 6, 2023
@ZurabDev ZurabDev added this to the 3.2.0 milestone Oct 6, 2023
@ickisIckis ickisIckis assigned ZurabDev and unassigned ickisIckis Oct 11, 2023
@ZurabDev ZurabDev linked a pull request Oct 11, 2023 that will close this issue
@ZurabDev ZurabDev added the state:ready ready for release (pass tested) label Oct 11, 2023
This was referenced Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
estimate:sp3 Story Point - 3 october2023 priority:high level of urgency - high state:ready ready for release (pass tested) type:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants