Skip to content

Commit a1512a0

Browse files
authored
fix(fe): fix InputComboBox shrinking when disabled (#7266)
1 parent 8ea3bac commit a1512a0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

web/src/app/css/inputs.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222

2323
.input-disabled {
2424
background-color: var(--background-neutral-03);
25-
border: none;
25+
border: 1px solid transparent;
2626
cursor: not-allowed;
2727
}

web/src/refresh-components/inputs/InputComboBox/InputComboBox.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ const InputComboBox = ({
364364

365365
return (
366366
<div ref={refs.setReference} className={cn("relative w-full", className)}>
367-
<div className="relative">
367+
<>
368368
<InputTypeIn
369369
ref={inputRef}
370370
placeholder={placeholder}
@@ -438,7 +438,7 @@ const InputComboBox = ({
438438
allowCreate={!strict}
439439
showCreateOption={showCreateOption}
440440
/>
441-
</div>
441+
</>
442442

443443
{/* Error message - only show internal error messages when not using external isError */}
444444
{!isValid && errorMessage && externalIsError === undefined && (

0 commit comments

Comments
 (0)