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.

Selecting all and then checking whether the value isEmpty throws

See original GitHub issue

Do you want to request a feature or report a bug?

bug

What’s the current behavior?

Go to: https://www.slatejs.org/#/hovering-menu

Click inside and <kbd>command+a</kbd> (or <kbd>ctrl+a</kbd>) to select all. You’ll see an error.

This is coming from value.isEmpty being called in the check. I’m not sure what should change though.

What’s the expected behavior?

Expected behavior would be that it selects all and does not error out.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ianstormtaylorcommented, Jul 31, 2018

Fixed by #2012, thanks for reporting @kalley.

1reaction
steidacommented, Jul 30, 2018

isCollapsed is quick workaround, working isEmpty would be better ofc.

Read more comments on GitHub >

github_iconTop Results From Across the Web

IsBlank(), IsEmpty(), or = " " ? - Power Platform Community
function is used to detect if there is no records within a Table. The "" (empty string) is a string text value, but...
Read more >
list.IsEmpty() vs list.Size() > 0 vs list != null
In this case, selectedValues will either be null, or will not be empty. You only ever need to check for != null in...
Read more >
How to Check if Object is Empty in JavaScript - Samantha Ming
Here's a Code Recipe to check if an object is empty or not.
Read more >
How to check if a result set is empty? - python - Stack Overflow
@TaoVenzke: Use try: results = cursor.fetchall() then catch the exception with an except handler? Not all databases throw an exception in this ...
Read more >
How to check if ResultSet is empty in JDBC Java - Javarevisited
The JDBC ResultSet doesn't provide any isEmpty(), length() or size() method to check if its empty or not. Hence, when a Java programmer ......
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