关于react ts中react-draggable-tags onChange事件不会触发,拿不到拖拽后的数组,官方回复是“示例上确实触发了,但是在实际的react ts项目中并没有触发这个onChange事件”于是我就自己写了一个
import { PlusOutlined } from '@ant-design/icons';
import type { InputRef } from 'antd';
import { Input, Tag } from 'antd';
import React, { useEffect, useRef, useState } from 'react';
import './EditItems.less'
import { Drag } from "mys-react";
const EditItems: React.FC = (props) => {
const { tags, setTags } = props
const [inputVisible, setInputVisible] = useState<boolean>(false);
const [inputValue, setInputValue] = useState('');
const inputRef = useRef<InputRef>(null);
useEffect(() => {
if (inp