javascript - 灰盒渲染 react-google-maps 的 StandaloneSearchBox
问题描述
我有下一个错误:表单图像中的灰色框
当我从 react-google-maps 渲染 StandaloneSearchBox 导入时,有时会在文本输入上出现或消失那个灰色框
这是我的代码:
render() {
new window.google.maps.places.SearchBox('HOL');
return (
<div className="g-autocomplete">
<StandaloneSearchBox
onPlacesChanged={this.onPlacesChanged}
ref={searchBox => { this.searchBox = searchBox; }}
>
<input
className={this.props.className ? this.props.className : ''}
type="text"
placeholder={this.props.placeholder ? this.props.placeholder : ''}
style={this.state.defaultStyle}
/>
</StandaloneSearchBox>
</div>
);
}
解决方案
推荐阅读
- python - PVLIB:生成辐照度值就是创建 NaN
- html - 当我在模式弹出窗口中打开日历时,日历会剪切
- c++ - C++中的双指针向量
- reactjs - React 钩子中缺少依赖项的 eslint 警告总是正确的吗?
- python - py to exe with pugubu
- android - 考虑 Moshi 中的可为空值
- sql - oracle,从表或数据库模式级别设置时区
- tizen - Tizen 工作室未能构建秒表模板
- sockets - 找不到类型“ServerSocketConnectEvent”
- mysql - 一般意义上的h2与hibernate和MySql之间的区别