You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -52,43 +49,45 @@ class MessageBox extends React.Component {
52
49
}
53
50
}
54
51
55
-
classDemoextendsReact.Component{
52
+
classAppextendsReact.Component{
56
53
constructor(props){
57
54
super(props)
58
-
this.state={
55
+
this.state={
59
56
forcePoly : true,
60
57
support : !!('list'indocument.createElement('input'))&&!!(document.createElement('datalist')&&window.HTMLDataListElement)
61
58
}
62
59
}
63
60
render(){
61
+
// eslint-disable-next-line
62
+
leterrorMessage="";
64
63
if(!this.state.support&&!this.state.forcePoly)errorMessage='Your browser does not support the native datalist :-( No worries, react-datalist got your back.'
0 commit comments