Skip to content

check for undefined label in _animateAndLockLabel() #18663

@gentunian

Description

@gentunian

this._label should be checked for undefined in form-field.ts _animateAndLockLabel()

Reproduction

Go to: https://components-issue-gyskyq.stackblitz.io/

Steps to reproduce:

  1. Toggle the slider
  2. Check for console error: Error: Cannot read property 'nativeElement' of undefined

Expected Behavior

No errors in console.

Actual Behavior

Errors are throw in console: Error: Cannot read property 'nativeElement' of undefined

Environment

stackblitz example attached.

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions