Closed timriley-io closed 4 years ago
Fixed in version 5.1.8
Hey guys, I know this issue is closed, but is there anyway of getting the values from inside your content/children into the onConfirm callback?
In another issue: #28 they mentioned being able to structure your modal input any way you want. However, if I want several fields in my Sweet Alert (say Username & Password instead of just Password as the example provides), I need some way to pass those values into my onConfirm .
Any help would be awesome. Let me know if I should open a separate issue for this.
I have a SweetAlert with
type="input"
, when I enter some text and click the submit button, the value passed to the function inonConfirm
is always an empty string.result of
console.log(e)
above is an empty stringLooks like the example here (http://djorg83.github.io/react-bootstrap-sweetalert/) is broken too. The resulting alert from the "Input. A replacement for the "prompt" function" example always shows
Nice! You wrote:
with nothing after it.react-bootstrap-sweetalert version 5.1.7