apache / apache/royale-asjs

focusManager.setFocus doesn't works with ADG's id,throwing compile time Error

Open
#940 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
ActionScript
Stars
380
Forks
120
PR merge metrics
No merged PRs in 30d

Description

On line : focusManager.setFocus(dgServices);
dgServices is id of ADG
Error: Implicit coercion of a value of type mx.controls.AdvancedDataGrid to an unrelated type mx.managers.IFocusManagerComponent.
![image](https://user-images.githubusercontent.com/42200979/99636061-bb282a80-2a64-11eb-9a7a-a44d91e6e791.png)

Example: https://paste.apache.org/7harh

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the compile-time error from the paste example at focusManager.setFocus(dgServices), where dgServices is the AdvancedDataGrid id. Trace the setFocus entry point and the AdvancedDataGrid type involved; done means the example compiles and focus can be set on the grid without the reported coercion error.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.