Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1a2e3d0

Browse files
committedJul 27, 2020
refactor(chips): remove deprecated md-on-append attribute
BREAKING CHANGE: Removed the deprecated, since 2015, `md-on-append` attribute. It was deprecated in favor of `md-transform-chip` or the simple notifier `md-on-add`. Please see the [md-chips Demos](https://material.angularjs.org/latest/demo/chips) for examples of using `md-transform-chip`.
1 parent 75aa734 commit 1a2e3d0

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed
 

‎src/components/chips/js/chipsDirective.js

-8
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,6 @@
298298
secondaryPlaceholder: '@?',
299299
maxChips: '@?mdMaxChips',
300300
transformChip: '&mdTransformChip',
301-
onAppend: '&?mdOnAppend',
302301
onAdd: '&?mdOnAdd',
303302
onRemove: '&?mdOnRemove',
304303
addedMessage: '@?mdAddedMessage',
@@ -416,13 +415,6 @@
416415
// before appending chips.
417416
if (attrs.mdTransformChip) mdChipsCtrl.useTransformChipExpression();
418417

419-
// If an `md-on-append` attribute was set, tell the controller to use the expression
420-
// when appending chips.
421-
//
422-
// TODO: Remove this now that 1.0 is long since released
423-
// DEPRECATED: Will remove in official 1.0 release
424-
if (attrs.mdOnAppend) mdChipsCtrl.useOnAppendExpression();
425-
426418
// If an `md-on-add` attribute was set, tell the controller to use the expression
427419
// when adding chips.
428420
if (attrs.mdOnAdd) mdChipsCtrl.useOnAddExpression();

0 commit comments

Comments
 (0)
Failed to load comments.