Skip to content

Commit c97f77a

Browse files
committed
[Switch, Textarea, Input] Fix endDecorator slot
1 parent c9b1418 commit c97f77a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/mui-joy/src/Input/Input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ const Input = React.forwardRef(function Input(inProps, ref) {
325325
});
326326

327327
const [SlotEndDecorator, endDecoratorProps] = useSlot('endDecorator', {
328-
className: classes.startDecorator,
328+
className: classes.endDecorator,
329329
elementType: InputEndDecorator,
330330
externalForwardedProps,
331331
ownerState,

packages/mui-joy/src/Switch/Switch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ const Switch = React.forwardRef(function Switch(inProps, ref) {
309309
additionalProps: {
310310
'aria-hidden': true, // hide the decorator from assistive technology
311311
},
312-
className: classes.startDecorator,
312+
className: classes.endDecorator,
313313
elementType: SwitchEndDecorator,
314314
externalForwardedProps,
315315
ownerState,

packages/mui-joy/src/Textarea/Textarea.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ const Textarea = React.forwardRef(function Textarea(inProps, ref) {
301301
});
302302

303303
const [SlotEndDecorator, endDecoratorProps] = useSlot('endDecorator', {
304-
className: classes.startDecorator,
304+
className: classes.endDecorator,
305305
elementType: TextareaEndDecorator,
306306
externalForwardedProps,
307307
ownerState,

0 commit comments

Comments
 (0)