Selecting all and then checking whether the value isEmpty throws
See original GitHub issueDo 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:
- Created 5 years ago
- Reactions:1
- Comments:9 (6 by maintainers)
Top 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 >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
Fixed by #2012, thanks for reporting @kalley.
isCollapsed is quick workaround, working isEmpty would be better ofc.