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 - prizmTabs при передаче объекта в атрибут [content], в списке объектов отображается [object: object] #1859

Closed
8 tasks
AlexandrPashanov opened this issue Jul 9, 2024 · 0 comments · Fixed by #1938
Assignees
Labels
priority:urgently "Tag: priority:urgently — Marks tasks or issues that require immediate attention and action. These a state:ready ready for release (pass tested) type:bug Something isn't working
Milestone

Comments

@AlexandrPashanov
Copy link

Библиотека

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

  • @prizm-ui/core
  • [x ] @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

Компонент

PrizmTabs

Версия

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

Windows 10,

Браузер:

Версия 126.0.6478.127 (Официальная сборка), (64 бит)

NodeJS:

➜ node --version
v18.19.0

Dependencies:

 npm ls @prizm-ui/components
[email protected] C:\git\Projects\test\test
└── @prizm-ui/[email protected]
npm ls @angular/core
[email protected] C:\git\Projects\test\test
├─┬ @angular/[email protected]
│ └── @angular/[email protected] deduped
├─┬ @angular/[email protected]
│ └── @angular/[email protected] deduped
├─┬ @angular/[email protected]
│ └── @angular/[email protected] deduped
├── @angular/[email protected]
├─┬ @angular/[email protected]
│ └── @angular/[email protected] deduped
├─┬ @angular/[email protected]
│ └── @angular/[email protected] deduped
├─┬ @angular/[email protected]
│ └── @angular/[email protected] deduped
├─┬ @angular/[email protected]
│ └── @angular/[email protected] deduped
├─┬ @ngx-translate/[email protected]
│ └── @angular/[email protected] deduped
├─┬ @prizm-ui/[email protected]
│ ├─┬ @angular/[email protected]
│ │ └── @angular/[email protected] deduped
│ ├── @angular/[email protected] deduped
│ ├─┬ @ng-web-apis/[email protected]
│ │ └── @angular/[email protected] deduped
│ ├─┬ @ng-web-apis/[email protected]
│ │ └── @angular/[email protected] deduped
│ ├─┬ @ng-web-apis/[email protected]
│ │ └── @angular/[email protected] deduped
│ ├─┬ @ng-web-apis/[email protected]
│ │ └── @angular/[email protected] deduped
│ ├─┬ @prizm-ui/[email protected]
│ │ └── @angular/[email protected] deduped
│ └─┬ [email protected]
│   └── @angular/[email protected] deduped
├─┬ @prizm-ui/[email protected]
│ └── @angular/[email protected] deduped
├─┬ @prizm-ui/[email protected]
│ └── @angular/[email protected] deduped
├─┬ @prizm-ui/[email protected]
│ └── @angular/[email protected] deduped
├─┬ @prizm-ui/[email protected]
│ └── @angular/[email protected] deduped
└─┬ [email protected]
  └── @angular/[email protected] deduped

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

ИАС БГПЗ

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

Скриншот.jpg

image

Ссылка на stackblitz с минимальным воспроизведением
Пример:

https://stackblitz.com/edit/ngx-14-title-demo-enp5ng?file=src%2Fapp%2Fapp.component.html

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

Если в content тэга prizm-tabs передать объект, либо ссылку на шаблон, использующий объект, то в dropdown со списком табов, табы будут отображаться, как [object Object].

const tabs = [{title: 'title1', name: 'name1'}];
<prizm-tab *ngFor="let tab of tabs" [content]="tabContent" [type]="'line'">
<ng-template #tabContent>


{{tab.title}}

{{tab.name}}




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

  1. Создать набор табов, чтобы табы вылезали за пределы контейнера
  2. В атрибут content передать объект.
  3. Открыть dropdown со списком табов.
@ickisIckis ickisIckis self-assigned this Jul 24, 2024
@ickisIckis ickisIckis added this to the 4.5.0 milestone Jul 24, 2024
@ickisIckis ickisIckis added type:bug Something isn't working priority:urgently "Tag: priority:urgently — Marks tasks or issues that require immediate attention and action. These a labels Jul 24, 2024
@ickisIckis ickisIckis modified the milestones: 4.5.0, 4.3.8 Aug 7, 2024
@ickisIckis ickisIckis added the state:ready ready for release (pass tested) label Aug 7, 2024
ZurabDev added a commit that referenced this issue Aug 9, 2024
fix(components/tabs): template usage for tabs listing #1859
@ZurabDev ZurabDev mentioned this issue Aug 9, 2024
ickisIckis added a commit that referenced this issue Aug 12, 2024
fix(components/tabs): template usage for tabs listing #1859
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:urgently "Tag: priority:urgently — Marks tasks or issues that require immediate attention and action. These a 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.

2 participants