fix: typography not trigger onEnd in blur #4227
parent
a1a8b799d0
commit
700d04badc
|
@ -5,6 +5,7 @@ import EnterOutlined from '@ant-design/icons-vue/EnterOutlined';
|
||||||
import { defineComponent, ref, reactive, watch, onMounted } from 'vue';
|
import { defineComponent, ref, reactive, watch, onMounted } from 'vue';
|
||||||
|
|
||||||
const Editable = defineComponent({
|
const Editable = defineComponent({
|
||||||
|
name: 'Editable',
|
||||||
props: {
|
props: {
|
||||||
prefixCls: PropTypes.string,
|
prefixCls: PropTypes.string,
|
||||||
value: PropTypes.string,
|
value: PropTypes.string,
|
||||||
|
@ -95,6 +96,7 @@ const Editable = defineComponent({
|
||||||
|
|
||||||
function onBlur() {
|
function onBlur() {
|
||||||
confirmChange();
|
confirmChange();
|
||||||
|
emit('end');
|
||||||
}
|
}
|
||||||
|
|
||||||
function confirmChange() {
|
function confirmChange() {
|
||||||
|
|
Loading…
Reference in New Issue