File tree Expand file tree Collapse file tree 5 files changed +7
-9
lines changed
ParserOpenRPC/InteractiveBox/templates Expand file tree Collapse file tree 5 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,9 @@ import { Tooltip } from '@site/src/components/Tooltip'
6
6
import debounce from 'lodash.debounce'
7
7
import { ParserOpenRPCContext } from '@site/src/components/ParserOpenRPC'
8
8
9
- interface ExtendedInputProps extends BaseInputTemplateProps {
9
+ interface ExtendedInputProps extends Omit < BaseInputTemplateProps , 'onBlur' > {
10
10
isArray ?: boolean
11
+ onBlur ?: ( id : string , value : any ) => void
11
12
[ key : string ] : any
12
13
}
13
14
@@ -18,7 +19,7 @@ export const BaseInputTemplate = ({
18
19
value = '' ,
19
20
disabled,
20
21
onChange,
21
- onBlur : handleBlur ,
22
+ onBlur,
22
23
rawErrors,
23
24
hideError,
24
25
required,
@@ -96,8 +97,7 @@ export const BaseInputTemplate = ({
96
97
} }
97
98
onBlur = { _e => {
98
99
setIsFocused ( false )
99
- // @ts -ignore – RJSF passes (id, value) but our local types differ from React handler
100
- handleBlur ?.( id , inputValue )
100
+ onBlur ?.( id , inputValue )
101
101
} }
102
102
{ ...rest }
103
103
/>
Original file line number Diff line number Diff line change 39
39
background : var (--general-white );
40
40
border : 1px solid var (--general-gray-light );
41
41
border-radius : 4px ;
42
- box-shadow : 0 6px 16px rgba ( 0 , 0 , 0 , 0.1 );
42
+ box-shadow : 0 6px 16px rgb ( 0 0 0 / 10 % );
43
43
margin-top : 0.3rem ;
44
44
padding-bottom : 1rem ;
45
45
z-index : 100 ;
Original file line number Diff line number Diff line change 1
- @media (min- width: 997px ) {
1
+ @media (width > = 997px) {
2
2
.sidebar {
3
3
display : flex;
4
4
flex-direction : column;
Original file line number Diff line number Diff line change 1
1
.flaskOnly : global (a.menu__link::after),
2
2
.flaskOnly : global (.menu__list-item-collapsible a .menu__link ::after ) {
3
3
content : 'Flask' ;
4
- margin-left : 0.5em ;
5
- background-color : var (--mm-flask-background-color );
6
4
color : var (--mm-flask-color );
7
5
border-radius : 0 ;
8
6
margin-left : 1rem ;
Original file line number Diff line number Diff line change 1
1
/*
2
2
Hide color mode toggle in small viewports
3
3
*/
4
- @media (max- width: 1196px ) {
4
+ @media (width < = 1196px) {
5
5
.colorModeToggle {
6
6
display : none;
7
7
}
You can’t perform that action at this time.
0 commit comments