Skip to content

bug: can't override toolbar title mode #17876

Closed

Description

@brandyscarney

Bug Report

Ionic version:

[x] 4.x

Current behavior:
Set the mode on the <ion-title>, see that it uses the current mode still.

Expected behavior:
Use the mode provided.

Steps to reproduce:
https://codepen.io/brandyscarney/pen/bZZXrm

Related code:
I believe this is the problem in ion-title, but I'm not sure why we do this for toolbar/title and not for others like segment/segment-button?

  private getMode() {
    const toolbar = this.el.closest('ion-toolbar');
    return (toolbar && toolbar.mode) || this.mode;
  }

  hostData() {
    const mode = this.getMode();

    ...
  }

Activity

  1. added
    help wanted
    and removed
    help wanted
    on Mar 29, 2019
  2. added
    help wanted
    and removed
    help wanted
    on Mar 29, 2019
  3. added
    help wanted
    and removed
    help wanted
    on Mar 29, 2019
  4. added
    help wanted
    on Mar 29, 2019
  5. removed
    help wanted
    on Mar 29, 2019
  6. brandyscarney commented on Jan 17, 2020

    @brandyscarney
    MemberAuthor

    This should be fixed with v5 - verify

  7. brandyscarney commented on Jan 23, 2020

    @brandyscarney
    MemberAuthor
  8. ionitron-bot commented on Feb 22, 2020

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

  9. locked and limited conversation to collaborators on Feb 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    package: core

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions