Skip to content
This repository was archived by the owner on Jan 30, 2024. It is now read-only.
This repository was archived by the owner on Jan 30, 2024. It is now read-only.

Warning console avec portal (firefox) #446

@jsroy19

Description

@jsroy19

Description du bogue / Describe the bug
à l'initialisation de la page dans Brio, il y a des warnings console de "empty string passe to getElementById" dans portal.ts (sous Firefox) en mode developpement.

Solution
remplacer dans portal.ts
private propId: string ='';

par un getter :
private get propId(): string {return this.id === undefined ? 'mPortal-' + uuid.generate() : this.id; }

et retirer l'initialisaiton de this.propId dans la méthode "ensutePortalTargetEl

Il est possible que les storybook du "toast" plantent, simplement les updater après avoir mis "open="true"" dans le template

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions