GithubHelp home page GithubHelp logo

Comments (8)

ericthompson avatar ericthompson commented on June 19, 2024

Good catches - we'll look into this asap!

from office-ui-fabric-core.

aremes avatar aremes commented on June 19, 2024

edit -> just wanted to issue a pull request for this and saw @robi26 already had this done :/ nevermind

One more: if i want to use the navbar without the search bar but with a dropdown (
"ContextualMenu", that is), it breaks on lines 419ff in fabric.js due to a missing null-check.

        // Close and blur the search box if it doesn't have text.
        if ($navBar.find('.ms-NavBar-item.ms-NavBar-item--search .ms-TextField-field').val().length === 0) {
          $('.ms-NavBar-item.ms-NavBar-item--search').removeClass('is-open').find('.ms-TextField-field').blur();
        }

changing these lines to

        // Close and blur the search box if it exists and doesn't have text.
        $searchBox = $navBar.find('.ms-NavBar-item.ms-NavBar-item--search .ms-TextField-field');
        if ($searchBox.length > 0 && $searchBox.val().length === 0) {
          $('.ms-NavBar-item.ms-NavBar-item--search').removeClass('is-open').find('.ms-TextField-field').blur();
        }

solves it. this also has to be done a few lines below at around line 464:

        // Close and blur the search box if it exists and doesn't have text.
        $searchBox = $navBar.find('.ms-NavBar-item.ms-NavBar-item--search .ms-TextField-field');
        if ($searchBox.length > 0 && $searchBox.val().length === 0) {
          $navBar.find('.ms-NavBar-item.ms-NavBar-item--search').removeClass('is-open').find('.ms-TextField-field').blur();
        }

Wouldn't you agree? or is it just me being an idiot assuming one might like to use the navbar without a search field? :)

from office-ui-fabric-core.

pbjorklund avatar pbjorklund commented on June 19, 2024

I'm having the same issue and solved it the same was as @aremes

from office-ui-fabric-core.

aremes avatar aremes commented on June 19, 2024

@pbjorklund there's already a pull request under review by the office devs. :) as for the original issue, i couldnt reproduce.. any more info? if i can reproduce it, i'd be glad to attempt a fix.

from office-ui-fabric-core.

pbjorklund avatar pbjorklund commented on June 19, 2024

If it's the same bug I think it just has to do with that a dropdown isn't closed when selecting another dropdown
image

edit: Glad to hear it! I actually just reverted to a hidden dummy that matched the search selectors just so that I could use bower correctly :)

from office-ui-fabric-core.

jonahkirangi avatar jonahkirangi commented on June 19, 2024

The upload menu item "fall out" issue has been resolved in pull request #173. The layering issue has been resolved in pull request #175.

from office-ui-fabric-core.

pbjorklund avatar pbjorklund commented on June 19, 2024

Is there a issue open for the search-field @jonahkirangi (I can't see an open one, might be resolved already as well)? I can create a new one and pull mine and @aremes comments together in that if there is none.

from office-ui-fabric-core.

ericthompson avatar ericthompson commented on June 19, 2024

Editing this after going back and re-reading the thread - sorry bout that!

We aren't tracking a separate issue for the search field problem @aremes noted above. It seems like he has a fix that would work. If one of you sent out a pull request we wouldn't mind reviewing it!

from office-ui-fabric-core.

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.