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.

Method to display errors

See original GitHub issue

It would be helpful to include error strings as props for cases like:

  • DateRangePicker Must select a start date Must select an end date

  • SingleDatePicker A date is required

Or possibly passing down custom errors as props.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
aghreedcommented, Apr 18, 2018

@ljharb yes! That’s a far more succinct way to say it.

Although I do think there’s still going to need to be a way to “activate” those error state styles on the date picker - i.e., an error bool prop.

Happy to help put a feature like this together as well.

1reaction
ljharbcommented, Apr 18, 2018

@aghreed so if I’m understanding correctly, your use case could be met by providing a way for a custom theme to style an error state?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Display All PHP Errors: Basic & Advanced Usage
The quickest way to display all php errors and warnings is to add these lines to your PHP code file: ini_set('display_errors', 1); ini_set(' ......
Read more >
UX Design: Four ways to display error messages - Nomensa
By using the combination of the four rules to display error messages and our own methods of multi-variant testing to display error messages,...
Read more >
How to display error without alert box using JavaScript
We can show errors with two methods without using the alert box. Method 1: By using textContent property. The textContent is basically used ......
Read more >
Error - JavaScript - MDN Web Docs - Mozilla
Error objects are thrown when runtime errors occur. The Error object can also be used as a base object for user-defined exceptions. See...
Read more >
How to Display All PHP Errors: For Basic and Advanced Use
The ideal technique to record errors is to define them in the web server configuration file, rather than modifying parameters in the .htaccess ......
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