Skip to content

Change in v4 event handlers #258

Closed
ionic-team/ionic-framework
#17214

Description

@gregd

Bug Report

Ionic version:

[x] 4.x

Angular event handlers get CustomEvent object from Ion components. This is a big change compared to Ionic v3. For example: <ion-select "onMyEvent($event)" ...> will trigger onMyEvent method, not with select value as a parameter, but with the CustomEvent object where the selected value is stored in event.detail.value property.

There is no a single word about above change in migration guide so I report this as a bug.

Activity

  1. paulstelzer commented on Jan 2, 2019

    @paulstelzer

    Thanks! That is something for #16819 - so it will be added to the breaking changes / migration page

  2. ionitron-bot commented on Jan 2, 2019

    @ionitron-bot

    Thanks for the issue! This issue appears to be a support request. We use this issue tracker exclusively for bug reports and feature requests. Please use our forum or our slack channel for questions about the framework.

    Thank you for using Ionic!

  3. locked and limited conversation to collaborators on Jan 2, 2019
  4. paulstelzer commented on Jan 2, 2019

    @paulstelzer

    BRR! Wanted to add iontron:docs.... @brandyscarney

  5. unlocked this conversation on Jan 3, 2019
  6. brandyscarney commented on Jan 3, 2019

    @brandyscarney
    Member

    I moved this to the ionic-docs repository and added it to our list for rc, thank you! ionic-team/ionic-framework#16819

  7. gregd commented on Jan 3, 2019

    @gregd
    Author

    In my example I deleted the event name by mistake. Here is better example: <ion-select (ionChange)="onMyEvent($event)" ...>

  8. paulstelzer commented on Jan 4, 2019

    @paulstelzer

    We know what you mean - no problem ;)

  9. added a commit that references this issue on Jan 23, 2019
    8a91793
  10. added a commit that references this issue on Jan 23, 2019
    b31b9f4
  11. added 3 commits that reference this issue on Apr 26, 2019
    d4b3b53
    175de96
    c6bd7be
  12. added a commit that references this issue on Aug 3, 2022
    a08b6ad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions