Skip to content

Commit becc45b

Browse files
committed
Merge branch 'develop' of github.com:devtron-labs/devtron-fe-common-lib into fix/theming-v3
2 parents 6045576 + 7a1f971 commit becc45b

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
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.7.6",
3+
"version": "1.7.7",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",

src/Shared/Components/CustomInput/CustomInput.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { InputHTMLAttributes, useEffect, useRef } from 'react'
17+
import { useEffect, useRef } from 'react'
1818
import { FormFieldWrapper, getFormFieldAriaAttributes } from '@Shared/Components/FormFieldWrapper'
1919
import {
2020
COMPONENT_SIZE_TYPE_TO_FONT_AND_BLOCK_PADDING_MAP,
@@ -75,14 +75,6 @@ const CustomInput = ({
7575
onBlur?.(event)
7676
}
7777

78-
const handleKeyDown: InputHTMLAttributes<HTMLInputElement>['onKeyDown'] = (event) => {
79-
if (event.key === 'Enter' || event.key === 'Escape') {
80-
event.stopPropagation()
81-
}
82-
83-
props.onKeyDown?.(event)
84-
}
85-
8678
const handleEndIconButtonClick: CustomInputProps['endIconButtonConfig']['onClick'] = (event) => {
8779
event.stopPropagation()
8880
inputRef.current.focus()
@@ -123,7 +115,6 @@ const CustomInput = ({
123115
data-testid={name}
124116
required={required}
125117
onBlur={handleBlur}
126-
onKeyDown={handleKeyDown}
127118
type={type}
128119
ref={inputRef}
129120
className={`${COMPONENT_SIZE_TYPE_TO_FONT_AND_BLOCK_PADDING_MAP[size]} ${COMPONENT_SIZE_TYPE_TO_INLINE_PADDING_MAP[size]} ${deriveBorderRadiusAndBorderClassFromConfig({ borderConfig, borderRadiusConfig })} ${endIconButtonConfig ? `custom-input__with-icon-button--${size}` : ''} w-100 dc__overflow-auto`}

0 commit comments

Comments
 (0)