Skip to content

autocomplete: Display Example throws exception on material.angular.io #17955

Closed
@Splaktar

Description

@Splaktar

Documentation Feedback

Opening the page throws an exception

ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'name' of null
TypeError: Cannot read property 'name' of null
    at MatAutocomplete.displayFn [as displayWith] (autocomplete.js:156)
    at MatAutocompleteTrigger._setTriggerValue (autocomplete.js:1034)
    at autocomplete.js:805
    at ZoneDelegate.invoke (zone-evergreen.js:365)
    at Object.onInvoke (core.js:41362)
    at ZoneDelegate.invoke (zone-evergreen.js:364)
    at Zone.run (zone-evergreen.js:124)
    at zone-evergreen.js:851
    at ZoneDelegate.invokeTask (zone-evergreen.js:400)
    at Object.onInvokeTask (core.js:41340)
    at ZoneDelegate.invokeTask (zone-evergreen.js:399)
    at Zone.runTask (zone-evergreen.js:168)
    at drainMicroTaskQueue (zone-evergreen.js:570)
    at ZoneTask.invokeTask [as invoke] (zone-evergreen.js:485)
    at invokeTask (zone-evergreen.js:1596)
    at resolvePromise (zone-evergreen.js:793) [angular]
    at :4200/vendor.js:217315:21 [angular]
    at Object.onInvokeTask (core.js:41340) [angular]
    at drainMicroTaskQueue (zone-evergreen.js:570) [<root>]
    at ZoneTask.invokeTask [as invoke] (zone-evergreen.js:485) [<root>]
    at invokeTask (zone-evergreen.js:1596) [<root>]
    at XMLHttpRequest.globalZoneAwareCallback (zone-evergreen.js:1633) [<root>]

Affected documentation page: https://next.material.angular.io/components/autocomplete/overview

This is specific to v9 as it does not occur on 8.2.3: https://material.angular.io/components/autocomplete/overview.

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workarounddocsThis issue is related to documentation

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions