You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jermaine (JIRA)" <ji...@apache.org> on 2018/08/15 17:54:00 UTC

[jira] [Commented] (CB-14270) Website Plugin and Docs Search doesn't work

    [ https://issues.apache.org/jira/browse/CB-14270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16581413#comment-16581413 ] 

Jermaine commented on CB-14270:
-------------------------------

After looking a bit it seems like the problem is that the event listener that should be on the plugin search box isn't being added:
--------
plugins.js:formatted:2171 Uncaught TypeError: Cannot read property 'addEventListener' of null at Et (plugins.js:formatted:2171) at Object._.fromEventTarget (plugins.js:formatted:2185) at e.componentDidMount (plugins.js:formatted:6086) at d (plugins.js:formatted:3316) at h (plugins.js:formatted:3324) at Object.k [as render] (plugins.js:formatted:3543) at Function.v.start (plugins.js:formatted:5807) at Object.14.../js/lib/ZeroClipboard.js (plugins.js:formatted:5811) at i (plugins.js:formatted:17) at t (plugins.js:formatted:25) at plugins.js:formatted:27
--------
because it seems like the function "findDOMNode'" is returning null on a ref, which I only got looking at the chrome :formatted version of the minified code and I'm not that familiar with react so somebody with more knowledge can verify and figure out:
--------
i = t("preact-compat").findDOMNode
... closure for ...
 , n = i(this.refs.filterTextInput)
--------
n ends up null.
 

> Website Plugin and Docs Search doesn't work
> -------------------------------------------
>
>                 Key: CB-14270
>                 URL: https://issues.apache.org/jira/browse/CB-14270
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-website
>    Affects Versions: cordova@7.0.0
>         Environment: All. Windows, mac, linux, android, ios, Chrome, Firefox, Safari, Edge.
>            Reporter: Jermaine
>            Priority: Major
>              Labels: search, website
>
> The search box for docs which is in the navigation bar on many [https://cordova.apache.org/] pages does not work. This is the same for the plugin search on the [https://cordova.apache.org/plugins/] page. It doesn't seem to redirect or put in the 'q=whatever' query into the url. For example, you can go to [https://cordova.apache.org/plugins/?q=camera] and get results for searching "camera", but you can't actually type anything into the search box and have anything happen.
> I don't know how nobody noticed this. All of my students have been complaining about it. I even tried VPNing to see if it was somehow Canada specifi, but I got the same problem.
> The fix should be easy, I added a search box to my website that refreshes an iframe and all I do is tack on "q=searchthing" to the url.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org