ionic-team / ionic-team/ionic-framework

bug: radio on android TV not working as expected

未关闭
#29,895 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
triage
主要语言
TypeScript
星标
52.7k
派生
13.3k
平均合并
1 天 15 小时
30 天内合并 PR
51

描述

### Prerequisites

- [X] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/docs/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

v8.x

### Current Behavior

Using DPAD in android studio:
When i press down, radio value changes.

### Expected Behavior

Using DPAD in android studio:
When i press down, radio value should not change, instead it should be outlined (selected)
Only when OK is pressed in DPAD then radio value should change to outlined's.

### Steps to Reproduce

Click in DPAD up/down buttons
Screenshot 2024-09-26 at 17 24 32

### Code Reproduction URL

https://github.com/deedarb/ionic-radio-tv-demo

### Ionic Info

[WARN] Error loading @capacitor/ios package.json: Error: Cannot find module
'@capacitor/ios/package.json'

Require stack:
- /usr/local/lib/node_modules/@ionic/cli/lib/project/index.js
- /usr/local/lib/node_modules/@ionic/cli/lib/index.js
- /usr/local/lib/node_modules/@ionic/cli/index.js
- /usr/local/lib/node_modules/@ionic/cli/bin/ionic

Ionic:

Ionic CLI : 7.2.0 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 8.3.1
@angular-devkit/build-angular : 18.2.6
@angular-devkit/schematics : 18.2.6
@angular/cli : 18.2.6
@ionic/angular-toolkit : 11.0.1

Capacitor:

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

Utility:

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

System:

NodeJS : v20.15.0 (/usr/local/bin/node)
npm : 10.7.0
OS : macOS Unknown

### Additional Information

Android TV Api level 34

贡献指南

打开贡献指南

调研方向

Start with the linked reproduction project and reproduce the behavior using Android TV API 34 and DPAD up/down controls. Then trace the Ionic radio component's focus and value-change behavior; done means navigation outlines a different option without changing the value until the DPAD OK button is pressed.

由索引模型根据 Issue 内容生成。

评估

技术栈
android, angular, typescript
领域
frontend, mobile
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。