-
-
Notifications
You must be signed in to change notification settings - Fork 357
[Map] add definition to after create events in controller #2763
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
Conversation
It looks like you unchecked the "Allow edits from maintainer" box. That is fine, but please note that if you have multiple commits, you'll need to squash your commits into one before this can be merged. Or, you can check the "Allow edits from maintainers" box and the maintainer can squash for you. Cheers! Carsonbot |
📊 Packages dist files size differenceThanks for the PR! Here is the difference in size of the packages dist files between the base branch and the PR.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, thanks for the fix :)
@@ -74,7 +74,7 @@ class default_1 extends Controller { | |||
return ({ definition }) => { | |||
this.dispatchEvent(eventBefore, { definition }); | |||
const drawing = factory({ definition }); | |||
this.dispatchEvent(eventAfter, { [type]: drawing }); | |||
this.dispatchEvent(eventAfter, { [type]: drawing, definition: definition }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since I can't push on your repository, you will need to do the following changes:
- This change must be done in the
src/abstract_map_controller.ts
file - You also need to update the
info-window:after-create
event - finally, you have to rebuild the dist files (https://github.com/symfony/ux/blob/2.x/CONTRIBUTING.md#working-with-assets)
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Kocal I pushed some changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's perfect, thanks :)
Thanks @mart-insiders and @dannyvw :) |
Hi,
The documentationstates that the definition should be accessible in the :after-create events in the map controllers.