Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

[MDC Tab Bar] Support disabled Tabs #6386

Closed
@maicol07

Description

Feature Request

If ripple is not present, do not throw an error. Instead, don't add it

At the moment the error thrown is this one:

Uncaught TypeError: rippleSurface is null
    removeClass component.js:42
    setUnbounded foundation.js:171
    setUnbounded_ component.js:117
    set component.js:89
    initialSyncWithDOM component.js:108
    MDCComponent component.js:38
    MDCRipple component.js:32
    rippleFactory component.js:38
    initialize component.js:44
    MDCComponent component.js:32
    MDCTab component.js:32
    tabFactory component.js:54
    instantiateTabs_ component.js:162
    instantiateTabs_ component.js:160
    initialize component.js:56
    MDCComponent component.js:32
    MDCTabBar component.js:34
    initMdcTabBar _material.js:216
    jQuery 2
    js _material.js:218
    js app.js:277
    Webpack 6
component.js:42:202
    removeClass component.js:42
    setUnbounded foundation.js:171
    setUnbounded_ component.js:117
    set component.js:89
    initialSyncWithDOM component.js:108
    MDCComponent component.js:38
    MDCRipple component.js:32
    rippleFactory component.js:38
    initialize component.js:44
    MDCComponent component.js:32
    MDCTab component.js:32
    tabFactory component.js:54
    instantiateTabs_ component.js:162
    map self-hosted:231
    instantiateTabs_ component.js:160
    initialize component.js:56
    MDCComponent component.js:32
    MDCTabBar component.js:34
    initMdcTabBar _material.js:216
    jQuery 2
    js _material.js:218
    js app.js:277
    Webpack 6

Proposed solution

Read above

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions