Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

refactor: split out selector from base select#11

Merged
Tigge merged 1 commit intoAxisCommunications:mainfrom
Tigge:selector-refactoring
Feb 1, 2021
Merged

refactor: split out selector from base select#11
Tigge merged 1 commit intoAxisCommunications:mainfrom
Tigge:selector-refactoring

Conversation

@Tigge
Copy link
Copy Markdown
Collaborator

@Tigge Tigge commented Jan 27, 2021

The selector itself could be reused to make other types of selects such
as a larger area, or a grid of things. This splits out the selector part
from BaseSelect into BaseSelectSelector.

In addition this adds a forwardRef to Paper so it can be reused in
dropdowns.

@Tigge Tigge force-pushed the selector-refactoring branch 2 times, most recently from 206ea4f to fde1250 Compare January 27, 2021 20:33
@Tigge Tigge requested a review from steabert January 29, 2021 13:02
@Tigge Tigge force-pushed the selector-refactoring branch from fde1250 to c4f1585 Compare January 29, 2021 13:14
@lekoaf lekoaf requested a review from boilund February 1, 2021 08:36
Comment thread packages/core/src/Select/BaseSelect.tsx Outdated
const handleFocusOut: React.EventHandler<React.FocusEvent> = useCallback(
e => {
e.persist()
console.log(e)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Remove console.log?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done!

The selector itself could be reused to make other types of selects such
as a larger area, or a grid of things. This splits out the selector part
from BaseSelect into BaseSelectSelector.

In addition this adds a forwardRef to Paper so it can be reused in
dropdowns.
@Tigge Tigge force-pushed the selector-refactoring branch from c4f1585 to 53e55b2 Compare February 1, 2021 08:46
@Tigge Tigge merged commit 9adf3a5 into AxisCommunications:main Feb 1, 2021
@Tigge Tigge deleted the selector-refactoring branch February 1, 2021 11:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants