ionic-team / ionic-team/ionic-framework

bug: scroll assist causes duplicate click and focus events to be fired

オープン
#25,200 コメント 7 件 リアクション 1 件 担当者 0 名 GitHub で見る
package: core type: bug
主要言語
TypeScript
スター
52.7k
フォーク
13.3k
平均マージ
1日 15時間
マージ済み PR(30日)
51

説明

### Prerequisites

- [X] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#creating-an-issue).
- [X] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [X] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.

### Ionic Framework Version

- [ ] v4.x
- [ ] v5.x
- [X] v6.x
- [ ] Nightly

### Current Behavior

When ion-input and ion-item gains focus, an ionBlur event is fired incorrectly.
|Action|Events Fired|Status|
|---|---|---|
|Click inside ion-input (input gains focus)| 1. ionFocus, 2. ionBlur, 3. ionFocus| Incorrect |
|Click inside ion-input (input loses focus)| 1. ionBlur| Correct |

### Expected Behavior

|Action|Events Fired|
|---|---|
|Click inside ion-input (input gains focus)| 1. ionFocus |
|Click inside ion-input (input loses focus)| 1. ionBlur |

### Steps to Reproduce

1. Checkout the provided code
2. run ionic serve
3. Open inspector
4. Click in ion-input on the screen

### Code Reproduction URL

https://github.com/KWIPPED/ionic-event-bug

### Ionic Info

Ionic:

Ionic CLI : 6.19.0 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/vue 6.1.2

Capacitor:

Capacitor CLI : 3.5.0
@capacitor/android : not installed
@capacitor/core : 3.5.0
@capacitor/ios : not installed

Utility:

cordova-res : not installed globally
native-run : 1.5.0

System:

NodeJS : v14.16.0 (/usr/local/bin/node)
npm : 6.14.11
OS : macOS Monterey

### Additional Information

_No response_

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。