fix onPaste

This commit is contained in:
martin-mfg
2025-12-09 15:36:16 +01:00
parent 9675215645
commit 536e1226f3
2 changed files with 5 additions and 1 deletions
@@ -13,6 +13,7 @@ const TextSection = ({
setValue,
disabled,
placeholder,
onPaste,
}) => {
const [internalValue, setInternalValue] = useState(value);
const debounceTimeout = useRef(null);
@@ -49,6 +50,7 @@ const TextSection = ({
onChange={(e) => setInternalValue(e.target.value)}
disabled={disabled}
placeholder={placeholder}
onPaste={onPaste}
/>
</Section>
);
@@ -61,11 +63,13 @@ TextSection.propTypes = {
setValue: PropTypes.func.isRequired,
disabled: PropTypes.bool,
placeholder: PropTypes.string,
onPaste: PropTypes.func,
};
TextSection.defaultProps = {
disabled: false,
placeholder: '',
onPaste: undefined,
};
export default TextSection;
@@ -176,7 +176,7 @@ const CustomizeStage = ({
if (parts.length > 1) {
newValue = parts.slice(-1).join('/');
}
setRepo(newValue);
setGist(newValue);
}}
disabled={!isAuthenticated}
/>