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.

Default value not working in v.4.3.0

See original GitHub issue

I’m having problems to get the default value in v4.3.0, the problem is I’m not able to replicate it in the codeSandbox but when I switch to v4.2.0 it’s working, I have looked the changes in the lastest version and I saw you added a defaultValue prop

https://github.com/anubra266/choc-autocomplete/blob/932823f7935abe6ef0909594fe4fc58ee058bbf5/src/use-autocomplete.ts#L160

I put console.log(autoCompleteProps.defaultValue) and it’s undefined so the return of useParseDefaultValue is undefined as well, as I’m using the input in controlled mode I think it should get value as default value, I think that is the way how this was working before

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
gepdcommented, Aug 1, 2021

Thanks It’s working again!

1reaction
anubra266commented, Aug 1, 2021

Fixed in 4.3.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

New default values after migrating to 4.3.0 - jQWidgets
I migrated a project from jqWidgets 4.1.0 to 4.3.0 and I remarked, that at least two default values has been changed:
Read more >
JsonKey.defaultValue not recognizing constructor default value
The problem is a false positive with the warning. The warning shouldn't appear when the default value passed to the constructor and the ......
Read more >
jqgrid checkbox - Set default value on add new - Stack Overflow
I suppose that you use not the last version of jqGrid. The problem with the usage of defaultValue property of editoptions exist in...
Read more >
NullException Due to Passing Fields with Null values in ...
NullException Due to Passing Fields with Null values in "Contains" function in 4.3.0 Runtime Version. This article explain how to avoid the Null ......
Read more >
VMware SD-WAN 4.3.0 Release Notes
VMware SD-WAN™ Edge Version R430-20211007-GA-61583-69704-59629-72423 ... (CA) rather than the default self-signed Orchestrator certificate authority.
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