Thanks to visit codestin.com Credit goes to github.com
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 77577e2 commit dc9bca2Copy full SHA for dc9bca2
draft-js-plugins-editor/src/Editor/index.js
@@ -170,7 +170,7 @@ class PluginEditor extends Component {
170
for (const plugin of plugins) {
171
if (typeof plugin[methodName] !== 'function') continue;
172
const result = plugin[methodName](...newArgs);
173
- if (result !== undefined) {
+ if (result !== undefined && result !== null) {
174
styles = (styles ? (`${styles} `) : '') + result;
175
}
176
0 commit comments