Comments (8)
Good catches - we'll look into this asap!
from office-ui-fabric-core.
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.
I'm having the same issue and solved it the same was as @aremes
from office-ui-fabric-core.
@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.
If it's the same bug I think it just has to do with that a dropdown isn't closed when selecting another dropdown
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.
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.
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.
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)
- Shouldn't the starter template use ms-Fabric style in the body?
- How to access the latest CSS style sheets, Icons & Java scripts for HTML web development HOT 3
- Can I use Fabric-UI styles and components in Angular 10 ?? HOT 8
- Visio brand icon is still old
- In BasePicker allow to pass the style for the focused element
- Edit Icon is not working HOT 1
- Do we support auto layout in office Fabric React - Grid layout
- SVG for the icons HOT 2
- Can I use Fabric-UI styles and components in VueJS ?
- Selection cannot be controlled by state
- Office fabric ui core style stopped working HOT 5
- Is the Announced component deprecated HOT 1
- Invalid aria attributes is defined for the column header
- Issue with ms-animation mixin with Sass (latest version of DartSass)
- icon
- Breadcrumb button not visible in High contrast black mode HOT 1
- New Icon request.
- Bug: The icon library is not loading the icons correctly.
- newer icons are missing HOT 2
- Scoped CSS is pointing to the wrong font file on CDN
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from office-ui-fabric-core.