ElemeFE / ElemeFE/react-amap

搜索提示服务报:Cannot read property 'offsetTop' of null 求解决 谢谢了!

Open
#79 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1k
Forks
148
PR merge metrics
No merged PRs in 30d

Description

[当使用高德官方文档的AMap.Autocomplete时,](http://lbs.amap.com/api/javascript-api/reference/search#m_AMap.Autocomplete)
AutocompleteOptions里的一个属性: **input** 配置后搜索提示服务功能可以用,但是滚动屏幕会报 “Cannot read property 'offsetTop' of null”错误;
issus
![image](https://user-images.githubusercontent.com/30194825/35959829-2a7aa7f8-0ce2-11e8-83a9-b66707406b9b.png)
# 向上或向下滚动页面后:
![image](https://user-images.githubusercontent.com/30194825/35959856-5138c10e-0ce2-11e8-9c50-7507df5ca8ec.png)

求解决 谢谢了!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.