File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -98,10 +98,8 @@ const Input: React.FC = () => {
98
98
}
99
99
}
100
100
101
- if ( buttonRef ?. current ) {
102
- if ( button ) {
103
- button . addEventListener ( "click" , focusInput ) ;
104
- }
101
+ if ( button ) {
102
+ button . addEventListener ( "click" , focusInput ) ;
105
103
}
106
104
107
105
return ( ) => {
@@ -128,7 +126,11 @@ const Input: React.FC = () => {
128
126
if ( arrow && div && div . classList . contains ( "hidden" ) ) {
129
127
div . classList . remove ( "hidden" ) ;
130
128
div . classList . add ( "block" ) ;
131
- if ( window . screen . height - 100 < div . getBoundingClientRect ( ) . bottom ) {
129
+ // window.innerWidth === 767
130
+ if (
131
+ window . innerWidth > 767 &&
132
+ window . screen . height - 100 < div . getBoundingClientRect ( ) . bottom
133
+ ) {
132
134
div . classList . add ( "bottom-full" ) ;
133
135
div . classList . add ( "mb-2.5" ) ;
134
136
div . classList . remove ( "mt-2.5" ) ;
You can’t perform that action at this time.
0 commit comments