Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug with using title attribute in breadcrumbs directive. #10171

Merged
merged 1 commit into from
Feb 3, 2017

Conversation

cjcenizal
Copy link
Contributor

The breadcrumbs directive currently has a title attribute. This will be interpreted as a valid HTML attribute by browsers:

image

This PR renames the attribute and also sets replace: true on the directive to reduce the depth of the node tree for this directive.

@cjcenizal cjcenizal added Team:Platform-Design Team Label for Kibana Design Team. Support the Analyze group of plugins. :Sharing bug Fixes for quality problems that affect the customer experience labels Feb 3, 2017
@@ -8,13 +8,15 @@ const module = uiModules.get('kibana');
module.directive('breadCrumbs', function ($location) {
return {
restrict: 'E',
replace: true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does this do?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

It will remove the <bread-crumbs> element from the DOM and instead only add the children (i.e. the DOM defined by the directive's template).

Copy link
Contributor

@stacey-gammon stacey-gammon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hah, good find, thanks for the fix!

@cjcenizal cjcenizal merged commit 36821ed into elastic:master Feb 3, 2017
@cjcenizal cjcenizal deleted the bug/dashboard-breadcrumb-title branch February 3, 2017 14:50
elastic-jasper added a commit that referenced this pull request Feb 3, 2017
Backports PR #10171

**Commit 1:**
Fix bug with using title attribute in breadcrumbs directive.

* Original sha: f961548
* Authored by CJ Cenizal <cj@cenizal.com> on 2017-02-03T02:03:34Z
cjcenizal pushed a commit that referenced this pull request Feb 3, 2017
Backports PR #10171

**Commit 1:**
Fix bug with using title attribute in breadcrumbs directive.

* Original sha: f961548
* Authored by CJ Cenizal <cj@cenizal.com> on 2017-02-03T02:03:34Z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Team:Platform-Design Team Label for Kibana Design Team. Support the Analyze group of plugins.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants