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

[Angular] Html custom element can not be rendered inside eventTooltip.template #8300

Closed
SergeyMaltsev opened this issue Jan 19, 2024 · 0 comments
Assignees
Labels
angular Angular framework integration bug Something isn't working high-priority Urgent to have fixed regression Worked previously, now broken resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@SergeyMaltsev
Copy link
Contributor

Version 5.6.5

Steps to reproduce

Build angular demo Scheduler/examples/frameworks/angular/angular-11-routing

Test case 1

Initially demo is configured here
Scheduler/examples/frameworks/angular/angular-11-routing/src/app/scheduler/scheduler.config.ts

features          : {
        resourceTimeRanges : true,
        eventTooltip       : {
            // template returns a custom element created in app.module.ts
            template : ({ eventRecord, startClockHtml, endClockHtml }) => {
                return `<tooltip-renderer
                      name="${eventRecord.name}"
                      resource-name="${eventRecord.resource?.name}"
                      >${startClockHtml}${endClockHtml}</tooltip-renderer>`;
            }
        }
    }
  • Hover mouse over event (Tooltip is shown)
  • Move outside (Tooltip is hidden)
  • Hover again. (No tooltip is shown) 🐛 BUG

Behavior:

TooltipHover

Test case 2

Wrap template with div

features          : {
        resourceTimeRanges : true,
        eventTooltip       : {
            // template returns a custom element created in app.module.ts
            template : ({ eventRecord, startClockHtml, endClockHtml }) => {
                return `<div><tooltip-renderer
                      name="${eventRecord.name}"
                      resource-name="${eventRecord.resource?.name}"
                      >${startClockHtml}${endClockHtml}</tooltip-renderer></div>`;
            }
        }
    }

Behavior:

TooltipHover2

Related to Fix adopt lifecycle commit.

@SergeyMaltsev SergeyMaltsev added bug Something isn't working regression Worked previously, now broken angular Angular framework integration labels Jan 19, 2024
@isglass isglass added the high-priority Urgent to have fixed label Jan 19, 2024
@ExtAnimal ExtAnimal assigned ExtAnimal and unassigned jsakalos Jan 22, 2024
@ExtAnimal ExtAnimal added the ready for review Issue is fixed, the pull request is being reviewed label Jan 22, 2024
@ExtAnimal ExtAnimal added this to the 5.6.6 milestone Jan 22, 2024
@isglass isglass added resolved Fixed but not yet released (available in the nightly builds) and removed ready for review Issue is fixed, the pull request is being reviewed labels Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
angular Angular framework integration bug Something isn't working high-priority Urgent to have fixed regression Worked previously, now broken resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

4 participants