question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Select group label not required, but without label it breaks the UI

See original GitHub issue

Describe the issue. What is the expected and unexpected behavior?

When using select with SelectGroup the label is marked as optional, yet if I don’t pass it it breaks the whole UI with error message Uncaught (in promise) TypeError: Cannot read property 'replace' of undefined

Please provide the steps to reproduce. Feel free to link CodeSandbox or another tool. Remove label in PF examples and it breaks the component.

Is this a bug or enhancement? If this issue is a bug, is this issue blocking you or is there a work-around? Rather critical bug, we can’t properly upgrade to new PF because of this bug.

What is your product and what release version are you targeting? cloud.redhat.com

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
kmcfaulcommented, Jul 1, 2020

+1 adding the null check

Making it required would be breaking, and I’m not sure it needs to be required. It definitely needs to not break when left out though

0reactions
karelhalacommented, Jul 2, 2020

@kmcfaul thank you for the fix!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove Label on Material-UI Select Text Field - Stack Overflow
What I want to do is remove the label entirely and replace that with a blue border. Gender Field, male selected. Here is...
Read more >
Labeling Controls | Web Accessibility Initiative (WAI) - W3C
Provide labels to identify all form controls, including text fields, checkboxes, radio buttons, and drop-down menus. In most cases, this is done by...
Read more >
Form <input> elements must have labels | Axe Rules
These inputs are hidden and unavailable for user input. They therefore need no label. When adding labels, be sure to avoid the following:...
Read more >
Labels - GitLab Docs
The project must have no labels present. To add the default labels to the project: On the top bar, select Main menu >...
Read more >
Known issues with sensitivity labels in Office - Microsoft Support
This document details the known issues and workarounds with the sensitivity labeling feature in Office and will be kept updated as new ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found