We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 468897a commit 6222804Copy full SHA for 6222804
src/cdk/testing/testbed/unit-test-element.ts
@@ -196,7 +196,7 @@ export class UnitTestElement implements TestElement {
196
async setContenteditableValue(value: string): Promise<void> {
197
const contenteditableAttr = await this.getAttribute('contenteditable');
198
199
- if (contenteditableAttr !== '' && contenteditableAttr !== 'true') {
+ if (contenteditableAttr !== '' && contenteditableAttr !== 'true' && contenteditableAttr !== 'plaintext-only') {
200
throw new Error('setContenteditableValue can only be called on a `contenteditable` element.');
201
}
202
0 commit comments