Skip to content

Stop dialog inside collection from closing due to typeahead#4328

Merged
snowystinger merged 5 commits into
mainfrom
dialog-closes-due-to-typeahead
Apr 11, 2023
Merged

Stop dialog inside collection from closing due to typeahead#4328
snowystinger merged 5 commits into
mainfrom
dialog-closes-due-to-typeahead

Conversation

@snowystinger
Copy link
Copy Markdown
Member

Closes #3957

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:

@rspbot
Copy link
Copy Markdown

rspbot commented Apr 4, 2023

Copy link
Copy Markdown
Member

@LFDanLu LFDanLu left a comment

Choose a reason for hiding this comment

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

Verified the fix locally by modifying the 'with dialog trigger' TableView story, mind adding a story or modifying that one so we can test via storybook?

expect(document.activeElement).toBe(getCell(tree, 'Sam'));
});

describe('', function () {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Mind updating this describe and the test case title so it is specific to this fix?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I didn't want to add a new story because it's covered pretty well by the test and it's a big enough example to be annoying
let me see if I can do the add it as a story and use it in the test

Copy link
Copy Markdown
Member Author

@snowystinger snowystinger Apr 4, 2023

Choose a reason for hiding this comment

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

done, found a new issue though. pre-existing. keyboard navigate to the first rows action button, press 'j' key. focus will move to the last row where the 'J' is, but it will not scroll to it. should address in followup.

@rspbot
Copy link
Copy Markdown

rspbot commented Apr 4, 2023

@rspbot
Copy link
Copy Markdown

rspbot commented Apr 4, 2023

@rspbot
Copy link
Copy Markdown

rspbot commented Apr 11, 2023

@rspbot
Copy link
Copy Markdown

rspbot commented Apr 11, 2023

## API Changes

unknown top level export { type: 'identifier', name: 'Column' }
unknown top level export { type: 'identifier', name: 'Column' }
unknown type { type: 'link' }
unknown type { type: 'link' }
unknown type { type: 'link' }
unknown type { type: 'link' }
unknown type { type: 'link' }
unknown type { type: 'link' }

@snowystinger snowystinger merged commit a8903d3 into main Apr 11, 2023
@snowystinger snowystinger deleted the dialog-closes-due-to-typeahead branch April 11, 2023 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dialog in Table closes when typing

4 participants