- add OnBlur to Field and Select

- update regex to remove dot for jwtttl
This commit is contained in:
Shemy Gan committed 2024-10-23 13:18:00 -04:00
1 parent f707965155
commit 6425113766
4 files changed
+27 -6

No files matched your search

@@ -41,6 +41,7 @@ const Field = forwardRef(
placeholder,
value,
onChange,
onBlur,
onInput,
error,
disabled,
@@ -115,6 +116,7 @@ const Field = forwardRef(
value={value}
onInput={onInput}
onChange={onChange}
onBlur={onBlur}
disabled={disabled}
inputRef={ref}
inputProps={{
@@ -216,6 +218,7 @@ Field.propTypes = {
placeholder: PropTypes.string,
value: PropTypes.string.isRequired,
onChange: PropTypes.func,
onBlur: PropTypes.func,
onInput: PropTypes.func,
error: PropTypes.string,
disabled: PropTypes.bool,
@@ -46,6 +46,7 @@ const Select = ({
value,
items,
onChange,
onBlur,
sx,
name = "",
}) => {
@@ -76,6 +77,7 @@ const Select = ({
className="select-component"
value={value}
onChange={onChange}
onBlur={onBlur}
displayEmpty
name={name}
inputProps={{ id: id }}
@@ -140,6 +142,7 @@ Select.propTypes = {
})
).isRequired,
onChange: PropTypes.func.isRequired,
onBlur: PropTypes.func,
sx: PropTypes.object,
};