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: wrong event type in HtmlComponent () #20

Open
shoonia opened this issue Dec 3, 2019 · 0 comments
Open

Bug: wrong event type in HtmlComponent () #20

shoonia opened this issue Dec 3, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@shoonia
Copy link

shoonia commented Dec 3, 2019

Wrong event type for IFrame and HtmlComponent

We can return any custom data from HtmlComponent. It's not HtmlComponentMessageEvent like another hendlers.

$w("#myHtmlComponent").onMessage( (event) => {
  let receivedMessage = event.data.someDataHere; // My custom data
} );

error:

Property 'someDataHere' does not exist on type 'Element'.ts(2339)

use

"devDependencies": {
    "corvid-cli": "^0.2.2",
    "corvid-types": "^0.1.90"
}
@agankarin agankarin added the bug Something isn't working label Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants