laptop and a wrench

漏洞

Unable to set the JavaScript Search widget placeholder to the 'All' category when using multiple sources.

上次发布: November 20, 2015 ArcGIS API for JavaScript
漏洞 ID 编号 BUG-000086233
已提交March 19, 2015
上次修改时间June 5, 2024
适用范围ArcGIS API for JavaScript
找到的版本3.14
操作系统Windows OS
操作系统版本7 64 Bit
状态Non-Reproducible

附加信息

Use the allPlaceholder property to set custom text for the All Placeholder. This property is to be documented at the next release. s.allPlaceholder = "Enter address";

解决办法

Use following work around: need to add "dojo/on" to the require //Change the place holder for the fist time document.getElementById("search_input").placeholder = "MY PLACEHOLDER"; //After you change the source and change it back to all //you will need to listten to the click event on(document.getElementsByClassName("searchMenu sourcesMenu")[0], "click", function(){ var element = document.getElementsByClassName("active")[0].innerHTML; if(element == "All"){ document.getElementById("search_input").placeholder = "MY PLACEHOLDER"; } });

重现步骤

漏洞 ID: BUG-000086233

软件:

  • ArcGIS API for JavaScript

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项