Skip to content

Commit

Permalink
fix #387
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Apr 5, 2016
1 parent b528c94 commit b92481d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Editor.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import React from 'react';

const editor = function(editable, attr, format, editorClass, defaultValue, ignoreEditable) {
if (editable === true || ignoreEditable || typeof editable === 'string') { // simple declare
if (editable === true ||
(editable === false && ignoreEditable) ||
typeof editable === 'string') { // simple declare
const type = editable ? 'text' : editable;
return (
<input { ...attr } type={ type } defaultValue={ defaultValue }
Expand Down

0 comments on commit b92481d

Please sign in to comment.