Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Remove unnecessary ref from Stickerpicker #2718

Merged
merged 1 commit into from
Feb 28, 2019

Conversation

jaywink
Copy link
Member

@jaywink jaywink commented Feb 28, 2019

There is a ref=target in the call to render AccessibleButton for
the hide stickers button. This ref is not present in the show case.

When clicking the stickerpicker show button, React gives a warning:

Warning: Stateless function components cannot be given refs
(See ref "target" in AccessibleButton created by Stickerpicker).
Attempts to access this ref will fail.

Removed the ref. Stickerpicker hide/show still works fine, no warning.

Signed-off-by: Jason Robinson [email protected]

There is a ref=target in the call to render AccessibleButton for
the hide stickers button. This ref is not present in the show case.

When clicking the stickerpicker show button, React gives a warning:

> Warning: Stateless function components cannot be given refs
> (See ref "target" in AccessibleButton created by Stickerpicker).
> Attempts to access this ref will fail.

Removed the ref. Stickerpicker hide/show still works fine, no warning.

Signed-off-by: Jason Robinson <[email protected]>
@jaywink jaywink requested a review from a team February 28, 2019 13:56
@jaywink jaywink merged commit c4c9c77 into develop Feb 28, 2019
@jaywink jaywink deleted the jaywink/stickerpicker-button-warning branch February 28, 2019 14:23
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