Skip to content

Commit b2e1cf0

Browse files
committed
fix: remove on key down from custom input
1 parent be13a78 commit b2e1cf0

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtron-labs/devtron-fe-common-lib",
3-
"version": "1.1.4-beta-11",
3+
"version": "1.1.5",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",

src/Shared/Components/ConfirmationModal/ConfirmationModal.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@ const ConfirmationModal = ({
3838
}
3939
}
4040

41-
const handleEnterKeyPress = (e: KeyboardEvent) => {
42-
if (e.key === 'Enter') {
43-
handleTriggerPrimaryActionButton()
44-
}
45-
}
46-
4741
const handleCloseWrapper = useCallback(() => {
4842
if (!primaryButtonConfig?.isLoading && !secondaryButtonConfig?.disabled) {
4943
handleClose()
@@ -94,7 +88,6 @@ const ConfirmationModal = ({
9488
label={getConfirmationLabel(confirmationKeyword)}
9589
inputWrapClassName="w-100"
9690
placeholder="Type to confirm"
97-
onKeyDown={handleEnterKeyPress}
9891
isRequiredField
9992
autoFocus
10093
/>

0 commit comments

Comments
 (0)