mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
DEV: applies valueAttribute deprecation when null (#8887)
This commit is contained in:
@ -890,7 +890,7 @@ export default Component.extend(
|
||||
},
|
||||
|
||||
_deprecateValueAttribute() {
|
||||
if (this.valueAttribute) {
|
||||
if (this.valueAttribute || this.valueAttribute === null) {
|
||||
this._deprecated(
|
||||
"The `valueAttribute` is deprecated. Use `valueProperty` instead"
|
||||
);
|
||||
|
Reference in New Issue
Block a user