Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type="input" not working #32

Open
suhailkc opened this issue Sep 26, 2019 · 5 comments
Open

type="input" not working #32

suhailkc opened this issue Sep 26, 2019 · 5 comments

Comments

@suhailkc
Copy link

why type="input" is not working ???

I got an error when using type="input":
SweetAlert2: Unknown type! Expected "success", "error", "warning", "info" or "question", got "input"

Screenshot:
click to view error screenshot

@critgames
Copy link

Confirmed. The basic type="input" is missing. Is this a oversight?

@zenflow
Copy link

zenflow commented Feb 6, 2020

The type option in sweetalert2 is used to indicate which icon to use, so it seems like this error is correct.

What exactly are you expecting type="input" to do?

@critgames
Copy link

There are a whole bunch of input types in SweetAlert2 that allow you to enter data: https://sweetalert2.github.io/#input-types

Not sure how to support these with this React wrapper, but without this--I'm looking at other solutions.

@alekaizer
Copy link

@critgames @suhailkc the inputType is even removed from the accepted props of the wrapper
Blame here by @alex-shamshurin

@jairorivero
Copy link

@suhailkc

Use
icon: 'info',

Swal.fire({
icon: 'info',
allowOutsideClick: false,
allowEscapeKey: false,
text: 'mensaje emergente'
});

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

No branches or pull requests

5 participants