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

Cannot use zone.js with SemanticUI Search #319

@gaiottino

Description

@gaiottino

Hi,

I initially posed this bug in here angular/angular#7750 since I'd only narrowed it down to angular2-polyfills.js before I left for holiday. Now that I'm back I dug deeper and found that zone.js is the culprit and I can see there are others having similar issues with 3rd party libs. More specifically, in my case, it's because zone.js is patching the onkeydown event which is used by SemanticUIs Search https://github.com/Semantic-Org/Semantic-UI/blob/master/dist/components/search.js#L100

Here's an updated plunker with only zone.js included http://plnkr.co/edit/SQBxicLoQ5LiFXJgT4qm?p=preview. Commenting out utils_1.patchOnProperties(HTMLElement.prototype, eventNames); the search tool works as intended again or even just removing onkeydown from the patched events "solves" the issue.

This is causing headaches for many people trying to use 3rd party libs with Angular2. Is there a fix coming or a workaround available? Any insight in why this is happening?

Regards,
Daniel

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions