mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 17:07:29 +08:00
FIX: ensures message field is rendering placeholders (#28753)
A previous commit had broken this codepath, this commit ensures it's fixed and is adding a test. It's not testing the copy/paste behavior as fairly complex to test.
This commit is contained in:
@ -24,8 +24,8 @@ export default class MessageField extends BaseField {
|
||||
{{#if this.displayPlaceholders}}
|
||||
<PlaceholdersList
|
||||
@currentValue={{@field.metadata.value}}
|
||||
@placeholders={{@placeholder}}
|
||||
@onCopy={{this.test}}
|
||||
@placeholders={{@placeholders}}
|
||||
@onCopy={{this.mutValue}}
|
||||
/>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user