Skip to content
This repository has been archived by the owner on Dec 23, 2022. It is now read-only.

Add delayBeforeAdd option #263

Merged
merged 4 commits into from
Feb 7, 2019

Conversation

joelvh
Copy link
Contributor

@joelvh joelvh commented Jan 31, 2019

Fixes #262 by adding an explicit delayBeforeAdd option in order to disable use of setTimeout by default. This could be a breaking change for those who are using event callbacks that conflict with onBlur. However, I assume that is the edge case and most implementations can use onBlur just fine.

@leMaik you OK with disabling the delay by default?

@coveralls
Copy link

coveralls commented Jan 31, 2019

Coverage Status

Coverage decreased (-1.0%) to 78.299% when pulling 81b1f68 on joelvh:feature/delayBeforeAdd into 899e5f5 on TeamWertarbyte:master.

@leMaik
Copy link
Member

leMaik commented Jan 31, 2019

Thank you for your first contribution! 🎉 I'll test and merge it tomorrow, but it looks really good. 👍

@leMaik
Copy link
Member

leMaik commented Jan 31, 2019

Oh and yes, I think the breaking change is fine…ish.

@joelvh
Copy link
Contributor Author

joelvh commented Jan 31, 2019

You're welcome - glad you created this library! Now that I've started to dig into the internals, there are some other changes I may start to implement.

@joelvh
Copy link
Contributor Author

joelvh commented Jan 31, 2019

@leMaik I just took the liberty to make an additional commit to refactor some logic for clarity and to DRY some things.

@joelvh
Copy link
Contributor Author

joelvh commented Feb 6, 2019

Hi @leMaik did you get a chance to look this over?

@leMaik
Copy link
Member

leMaik commented Feb 7, 2019

@joelvh Thanks for the heads-up. I'll merge this now.

src/ChipInput.js Outdated Show resolved Hide resolved
@leMaik leMaik merged commit b08bfb7 into TeamWertarbyte:master Feb 7, 2019
@joelvh
Copy link
Contributor Author

joelvh commented Feb 7, 2019

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants