diff --git a/build/config.js b/build/config.js index fbee0138a..922896706 100644 --- a/build/config.js +++ b/build/config.js @@ -1,5 +1,5 @@ module.exports = { dev: { - componentName: 'upload', // dev components + componentName: 'mentions', // dev components }, }; diff --git a/components/input/Input.jsx b/components/input/Input.jsx index 72e3c5ade..4b82589a1 100644 --- a/components/input/Input.jsx +++ b/components/input/Input.jsx @@ -192,11 +192,6 @@ export default { keydown: this.handleKeyDown, change: noop, }, - directives: [ - { - name: 'ant-input', - }, - ], }; return ; } diff --git a/components/input/ResizableTextArea.jsx b/components/input/ResizableTextArea.jsx index ba5b8e860..e4d094e3c 100644 --- a/components/input/ResizableTextArea.jsx +++ b/components/input/ResizableTextArea.jsx @@ -97,6 +97,11 @@ const ResizableTextArea = { style, class: cls, on: omit(getListeners(this), 'pressEnter'), + directives: [ + { + name: 'ant-input', + }, + ], }; return ( diff --git a/components/mentions/__test__/__snapshots__/demo.test.js.snap b/components/mentions/__test__/__snapshots__/demo.test.js.snap index f34248c65..f13128dd3 100644 --- a/components/mentions/__test__/__snapshots__/demo.test.js.snap +++ b/components/mentions/__test__/__snapshots__/demo.test.js.snap @@ -7,23 +7,23 @@ exports[`renders ./components/mentions/demo/basic.md correctly 1`] = ` - Top coders - + Top coders + - Bio - + Bio + - + SubmitReset diff --git a/components/mentions/demo/basic.md b/components/mentions/demo/basic.md index 607a23157..321f667ac 100644 --- a/components/mentions/demo/basic.md +++ b/components/mentions/demo/basic.md @@ -11,7 +11,7 @@ Basic usage. ```tpl @@ -22,6 +22,11 @@ Basic usage.