Skip to content

Conversation

@mddragnev
Copy link
Member

Closes #4780

Additional information (check all that apply):

  • Bug fix
  • New functionality
  • Documentation
  • Demos
  • CI/CD

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code
  • This PR includes API docs for newly added methods/properties
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes
  • This PR includes behavioral changes and the feature specification has been updated with them

@ChronosSF ChronosSF added 💥 status: in-test PRs currently being tested and removed ❌ status: awaiting-test PRs awaiting manual verification labels Oct 23, 2019
MayaKirova
MayaKirova previously approved these changes Oct 23, 2019
@skrustev
Copy link
Member

skrustev commented Oct 23, 2019

This has already been fixed by PR #5900. The current fix is not taken into account because navigating using tab does not go through the igxHierarchicalGrid's navigation service, but through the regular igxGrid navigation service which means overriding the getNextRowByIndex won't affect the behavior.

@skrustev skrustev self-requested a review October 23, 2019 15:36
Copy link
Member

@skrustev skrustev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

@skrustev skrustev self-requested a review October 24, 2019 07:02
})
export class IgxHierarchicalGridSmallerChildComponent extends IgxHierarchicalGridTestBaseComponent {}

@Component({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use IgxHierarchicalGridTestComplexComponent istead of creating new one

fixture.detectChanges();

const cell = hierarchicalGrid.getCellByColumn(2, 'ProductName');
cell.nativeElement.focus();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In order cell to be focused you have to use cell.nativeElement.dispatchEvent(new Event('focus'));

const keyboardEvent = new KeyboardEvent('keydown', {
key: 'Tab'
});
cell.dispatchEvent(keyboardEvent);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is defined function for keyboard iterations:
UIInteractions.triggerKeyDownEvtUponElem('Tab', cell.nativeElement, true);

super();
this.data = this.generateData(20, 2);
}
generateData(count: number, level: number) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this method is used more than once you can define it in the sample-test-data.spec.ts. An reuse it in all the definitions.

@ChronosSF ChronosSF self-requested a review October 28, 2019 11:47
ChronosSF
ChronosSF previously approved these changes Oct 28, 2019
nrobakova
nrobakova previously approved these changes Oct 28, 2019
@ChronosSF ChronosSF dismissed stale reviews from nrobakova and themself via 83b01e7 October 28, 2019 13:18
@ChronosSF ChronosSF requested review from ChronosSF, MayaKirova and nrobakova and removed request for MayaKirova and dkamburov October 29, 2019 08:31
@skrustev skrustev added ✅ status: verified Applies to PRs that have passed manual verification and removed 💥 status: in-test PRs currently being tested labels Oct 29, 2019
@ChronosSF ChronosSF merged commit 2423251 into master Oct 30, 2019
@ChronosSF ChronosSF deleted the mdragnev/fix-4780-master branch October 30, 2019 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Navigation with Tab is not correct when a row is expanded

7 participants