Form label flickers when used next to a switch
See original GitHub issue🐛 Bug report
I came across this issue when I was working on a form with this template: https://chakra-ui.com/docs/form/form-control#sample-usage-for-a-radio-or-checkbox-group
If a switch is rendered next to the Form Control and the switch is pressed, the label flickers.
💥 Steps to reproduce
- Write a component like so:
<Box>
<Switch />
<FormControl as="fieldset">
<FormLabel as="legend">hi</FormLabel>
</FormControl>
</Box>
- Click the switch
- The label flickers
💻 Link to reproduction
https://codesandbox.io/s/sharp-framework-un034?file=/src/index.tsx:218-356
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Form flickers upon Text Label update - Stack Overflow
Problem: I have a simple Windows Form with a few table panels, a text area, and a text label that serves as a...
Read more >Controls Flickering when drawed on the form - MSDN - Microsoft
The equivelant of a lite control is a Component. The flickering is caused by every transparent control having to paint the background and...
Read more >Access Form Flickers When Switching Tabs
I've been trying to do this, but every time I set the "use theme" setting for the tabs to No and then go...
Read more >Why Your Lights Flicker When Turning on Appliances
3. A Loose Connection Can Cause Lights To Flicker. Loose connections in a switch or outlet can sometimes cause flickering lights. The error ......
Read more >Microsoft Access tips: Flicker with tab controls - Allen Browne
The flickering is triggered by unattached labels on the page of a tab control. The workaround is to convert these labels to text...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In case anyone else has this bug - I found a hack to stop it from happening.
Just add this css:
I can reproduce as well (macOS 11.2.1 + Chrome 88.0.4324.182)
@Gohsato this is what you’re experiencing, right?
https://user-images.githubusercontent.com/54780737/108250983-e7674c00-7124-11eb-80a6-f87d32cc276f.mp4