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

Input field in alerts #351

Closed
danielmavila opened this issue May 7, 2015 · 10 comments
Closed

Input field in alerts #351

danielmavila opened this issue May 7, 2015 · 10 comments

Comments

@danielmavila
Copy link

My alerts have been rendering with a random fieldset in the html, I am not using type "input" for any of these.

sweetAlert({
    type: 'success'
    title: 'Report Archived'
    text: 'Report has been archived."
})

screen shot 2015-05-07 at 3 46 43 pm

@TomTasche
Copy link

check the element in your browser's developer tools. you probably have a stylesheet saying "input { display: block !important; }" somewhere

@adrianricardo
Copy link

I had a similar issue caused by foundation css rules

@masonfox
Copy link

masonfox commented Sep 9, 2015

I am having this issue as well. It seems to be coming from the Foundation CSS file. I went through commenting things in and out and still couldn't find a solution.

If anyone has a fix, it would be much appreciated.

@TomTasche
Copy link

Assign a customClass to the dialog and then insert a css-file with the following rule at the end of your html-body:
.custom-dialog-class input {
display: none;
}

@dlombardi
Copy link

so whats the fix here?

@TomTasche
Copy link

#351 (comment)

@ElranZiggi
Copy link

Throw this css in

.sweet-alert fieldset input {
display: none;
}

@mbarwick83
Copy link

The fix should really be in SweetAlert's main CSS, no? .sweet-alert input {display:none!IMPORTANT}

@beastybeast
Copy link

Related to #534

@t4t5
Copy link
Owner

t4t5 commented Sep 8, 2017

Fixed in 2.0, thanks to the fact that each modal now renders from scratch instead.

@t4t5 t4t5 closed this as completed Sep 8, 2017
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

9 participants