Skip to content

Commit

Permalink
Merge 070b1bb into f6c44cd
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister authored Jan 19, 2021
2 parents f6c44cd + 070b1bb commit f526d29
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/browser/render.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1117,4 +1117,18 @@ describe('render()', () => {
).to.not.throw();
expect(scratch.firstChild.contentEditable).to.equal('inherit');
});

// #2926 Part 2
it('should allow setting contentEditable to false', () => {
render(
<div contentEditable>
<span>editable</span>
<p contentEditable={false}>not editable</p>
</div>,
scratch
);

expect(scratch.firstChild.contentEditable).to.equal('true');
expect(scratch.querySelector('p').contentEditable).to.equal('false');
});
});

0 comments on commit f526d29

Please sign in to comment.