Coder Social home page Coder Social logo

Comments (5)

niketpathak avatar niketpathak commented on June 9, 2024 1

Hello @AlonsoK28 ,

Thank you for taking the time to report this. However, nothing has changed with respect to the styles since the past 10 releases of typeahead-standalone.
I also tested the latest version of typeahead-standalone on the latest version of Firefox. Here's a screencast showing the same:

Screencast.2023-02-15.11.41.38.mp4

In your case, I think the container where you place the typeahead-standalone component has an effect i.e. overrides the styles of typeahead. So this bug is specific to your use-case. I'm closing this issue given the workaround you figured out yourself.

Thanks!

Good day!

from typeahead-standalone.

niketpathak avatar niketpathak commented on June 9, 2024 1

Hello @AlonsoK28 , thank you for reporting this and for the example. I'll have a look at it soon.

from typeahead-standalone.

niketpathak avatar niketpathak commented on June 9, 2024 1

@AlonsoK28 Fixed in v4.18.0. Thank you.

from typeahead-standalone.

AlonsoK28 avatar AlonsoK28 commented on June 9, 2024

I identified that this issue occurs always when the component typeahead-standalone is placed inside a Bootstrap 5.2 lastest offcanvas

I have created a example app with this issue, follow the next steps to replicate:

  1. use firefox browser (chrome works well)
  2. open offcanvas using the button
  3. type the word gr into typeahead-input

firefox issue firefox

chrome working well
chrome

deployed app: https://typeahead-offcanvas-issue.vercel.app/

repo: https://github.com/AlonsoK28/typeahead-offcanvas-issue

Finally I think it would be good for your project to be able to use the component typeahead-standalone inside an bootstrap offcanvas component since it is a very common use case

from typeahead-standalone.

niketpathak avatar niketpathak commented on June 9, 2024

This seems some kind of a bug with Firefox because it does not accept any value of width in percentage. However, when I set a value in pixels (or vh), it works perfectly.

Here's a screehshot:
image

A workaround could be styling the list element (.tt-list) to use the width in pixels.
In the mean time, I'm going to try to see if there exists an alternate/better solution.

from typeahead-standalone.

Related Issues (20)

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.