e.preventDefault()}
+ onKeyDown={(e) => {
+ if (e.key !== 'Backspace') {
+ e.preventDefault();
+ return;
}
-
- .ant-input {
- overflow: auto;
- white-space: nowrap;
- ${disabled ? '' : 'padding-right: 28px;'}
-
- .ant-tag {
- display: inline;
- line-height: 19px;
- margin: 0;
- padding: 2px 7px;
- border-radius: 10px;
- }
- }
- `}
+ onChange(null);
+ }}
+ className={cx('ant-input', { 'ant-input-disabled': disabled })}
+ contentEditable={!disabled}
+ suppressContentEditableWarning
>
-
e.preventDefault()}
- onKeyDown={(e) => {
- if (e.key !== 'Backspace') {
- e.preventDefault();
- return;
- }
- onChange(null);
- }}
- className={cx('ant-input', { 'ant-input-disabled': disabled })}
- contentEditable={!disabled}
- suppressContentEditableWarning
- >
-
- {variableText}
-
-
- {!disabled ? (
-
onChange(null)}
- >
-
-
- ) : null}
+
+ {variableText}
+