Code Monkey home page Code Monkey logo

Comments (10)

don-esteban avatar don-esteban commented on August 14, 2024 1

I see, browser cache, thought about Gatsby's cache. Seems like working now. But let me do a production check tomorrow. I'll close the issue, if it works in production.

from site-search-360-react.

JVankat avatar JVankat commented on August 14, 2024

I did take a different approach (since reloading the script should not be necessary) - I've fixed this within our generic js plugin, but had to upgrade this component to our v14 script (mainly some minor style changes for search suggestions), since the v13 isn't being maintained anymore.

Can you please try to update the plugin to the 0.3.1 version and see whether this solves the issue for you? It did work as expected for me.

from site-search-360-react.

don-esteban avatar don-esteban commented on August 14, 2024

Thanks. The new component works as expected in our production site.

from site-search-360-react.

don-esteban avatar don-esteban commented on August 14, 2024

Nope, not really. Now, the issue has gone using the search button. Using Enter key produces still two inputs. I published a new bug reproduction version. Observe the config.

from site-search-360-react.

JVankat avatar JVankat commented on August 14, 2024

A quick fix would be using a copy of the ss360Config and giving an alias to both checkboxes:

<SiteSearch360 siteId={SITE_ID} ss360Config={JSON.parse(JSON.stringify(ss360Config))} alias="sb1" />
<SiteSearch360 siteId={SITE_ID} ss360Config={JSON.parse(JSON.stringify(ss360Config))} alias="sb2" />

I'll take a look whether we can improve this behavior on our side.

from site-search-360-react.

don-esteban avatar don-esteban commented on August 14, 2024

I'll wait a few days. It's already a work around on production page, using only one search box. We can live with that for some days more.

from site-search-360-react.

JVankat avatar JVankat commented on August 14, 2024

Please retest (and make sure the v14.1.85 is loading for you --> clearing the cache might be necessary).

from site-search-360-react.

don-esteban avatar don-esteban commented on August 14, 2024

Nope. Did You forget pushing changes? Don't see any.

npm install --save site-search-360-react@latest
gatsby clean; gatsby develop  // same with build and serve
  1. Visit http://localhost:8000/
  2. Click "Go to another page"
  3. Perform Search (press Enter)

The result box includes two input fields.

The script version seems correct.

Bildschirmfoto 2022-04-13 um 17 29 03

from site-search-360-react.

JVankat avatar JVankat commented on August 14, 2024

You need to check the developer console to see what script version exactly is being loaded. This was fixed in the js plugin, not within this component.

from site-search-360-react.

don-esteban avatar don-esteban commented on August 14, 2024

Does work as expected. Thanks.

from site-search-360-react.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.