File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
2+ import PropTypes from "prop-types" ;
23import { NavigationComponentBase } from "./navigation-component-base" ;
34
45export class SearchBox extends NavigationComponentBase {
56 constructor ( props ) {
67 super ( props ) ;
78 this . state = {
8- query : ''
9+ query : this . props . initValue || ""
910 } ;
1011 }
1112
@@ -50,3 +51,15 @@ export class SearchBox extends NavigationComponentBase {
5051 }
5152
5253}
54+
55+ SearchBox . protoTypes = {
56+ initValue : PropTypes . string ,
57+ placeholder : PropTypes . string ,
58+ className : PropTypes . string ,
59+ formRef : PropTypes . any ,
60+ inputClassName : PropTypes . string ,
61+ inputId : PropTypes . string ,
62+ template : PropTypes . element ,
63+ onSubmitHandler : PropTypes . func ,
64+ onEscape : PropTypes . func
65+ }
You can’t perform that action at this time.
0 commit comments