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/components - InputDateTime значение отображается не сразу #155

Closed
1 of 7 tasks
javadoffuad opened this issue Apr 12, 2023 · 4 comments
Assignees
Labels
state:ready ready for release (pass tested) type:bug Something isn't working
Milestone

Comments

@javadoffuad
Copy link

Библиотека

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

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

Компонент

InputDateTime

Версия

Операционная ситема:

Windows 10, etc

Браузер:

Google Chrome Версия 96.0.4664.110 (Официальная сборка), (x86_64)

NodeJS:

➜ node --version
v14.15.0

Dependencies:

➜ npm ls @prizm-ui/zyfra-components

@prizm-ui/zyfra-components 1.0.0.beta.29

Скрин / Видео проблемы

В таблице есть список мероприятий, после выбора мероприятия, актуализируется форма
image

В поле дата установлено, но не отображается
image

Установил фокус в поле, дата появилась
image

Пример кода:

class SomeComponent {
  public formControl = new FormControl<Date | null>(null);
  
  @Input() set currentEvent(value: {id: string, name: string; timestamp: number}) {
    const date = value.timestamp ? new Date(value.timestamp) : null;
    this.formControl.setValue(date);
  }
}
<prizm-input-date-time
    [label]="'The date time'"
    size="m"
    [formControl]="formControl"
    timeMode="HH:MM"></prizm-input-date-time>
@ZurabDev ZurabDev self-assigned this Apr 14, 2023
@ZurabDev ZurabDev added this to the 1.0.0-beta.30 milestone Apr 14, 2023
@dkshichkovskiy
Copy link

@ZurabDev Стоит отметка 1.0.0-beta.30, но в этой версии баг всё ещё воспроизводится.

@ZurabDev ZurabDev modified the milestones: 1.0.0-beta.30, 1.0.0-beta.32 Apr 17, 2023
@ZurabDev ZurabDev modified the milestones: 1.0.0-beta.32, 1.0.0-beta.36 May 3, 2023
@ZurabDev ZurabDev added the state:in_progress We work on this issue label May 5, 2023
@ZurabDev ZurabDev modified the milestones: 1.0.0-rc.1, 1.0.0-rc.2 May 11, 2023
@ZurabDev ZurabDev added state:ready ready for release (pass tested) and removed state:in_progress We work on this issue labels May 19, 2023
@javadoffuad
Copy link
Author

@ZurabDev Проверил на 1.0.0 версии, но проблема к сожалению все еще остается, откройте пожалуйста, тикет.

@javadoffuad
Copy link
Author

использовал prizm-input-layout-date-time

<prizm-input-layout
    size="m"
    [label]="'The date time'">
    <prizm-input-layout-date-time
      timeMode="HH:MM"
      [formControl]="formControl">
    </prizm-input-layout-date-time>
</prizm-input-layout>

@alexhawkins94 alexhawkins94 added the type:bug Something isn't working label Jul 3, 2023
@dkshichkovskiy
Copy link

Проверил на версии 1.2.4, проблема не актуальна.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state:ready ready for release (pass tested) type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants