Skip to content

feat: allow negative autoClose value to disable timeout (fixes #9)#12

Open
SHUBHAMKUMAR45 wants to merge 1 commit intosudhucodes:mainfrom
SHUBHAMKUMAR45:feat/allow-negative-autoclose
Open

feat: allow negative autoClose value to disable timeout (fixes #9)#12
SHUBHAMKUMAR45 wants to merge 1 commit intosudhucodes:mainfrom
SHUBHAMKUMAR45:feat/allow-negative-autoclose

Conversation

@SHUBHAMKUMAR45
Copy link

This PR allows a negative value for autoClose or duration
to disable automatic timeout for toasts.

Changes:

  • Replaced || with ?? to correctly handle 0 duration
  • Added check to prevent setTimeout when value is negative

Closes #9

@vercel
Copy link
Contributor

vercel bot commented Feb 17, 2026

@SHUBHAMKUMAR45 is attempting to deploy a commit to the sudhucodes projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

allow a negative value implement autoClose disable

1 participant