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 doesn't working in render html for popup body? #108

Open
mealbarracin10 opened this issue Jun 15, 2018 · 1 comment
Open

input doesn't working in render html for popup body? #108

mealbarracin10 opened this issue Jun 15, 2018 · 1 comment

Comments

@mealbarracin10
Copy link

i try set a popup with 2 fields, i am try as a component but it just show the labels, and doesn't show the fields

class App extends Component {
      constructor(props) {
        super(props);
        this.state = {
          show: false,
        };
      }
      render() {
        return (
          <div className="App">
          <SweetAlert
              show='true'
              title="Demo"
              html
              text={renderToStaticMarkup(<HelloWorld />)}
              onConfirm={() => this.setState({ show: false })}
            />
          </div>
        );
      }
    }

and it is my component HelloWorld,

 import React from 'react';
const HelloWorld = () =>
 <div>
     <div class="form-group">
         <label for="exampleInputEmail1">Email address</label>
         <input type="email" class="form-control" id="exampleInputEmail1" aria- describedby="emailHelp" placeholder="Enter email" />
     </div>
     <div class="form-group">
         <label for="exampleInputPassword1">Password</label>
         <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password" />
     </div>
 </div>

export default HelloWorld;

@mayank0109
Copy link

@mealbarracin10 Any solution related to this ?

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

2 participants