@@ -1167,21 +1167,22 @@ async function Talks({ confId }) {
1167
1167
1168
1168
function useNestedScrollLock ( ref ) {
1169
1169
useEffect ( ( ) => {
1170
+ let node = ref . current ;
1170
1171
let isLocked = false ;
1171
1172
let lastScroll = performance . now ( ) ;
1172
1173
1173
1174
function handleScroll ( ) {
1174
1175
if ( ! isLocked ) {
1175
1176
isLocked = true ;
1176
- ref . current . style . pointerEvents = 'none' ;
1177
+ node . style . pointerEvents = 'none' ;
1177
1178
}
1178
1179
lastScroll = performance . now ( ) ;
1179
1180
}
1180
1181
1181
1182
function updateLock ( ) {
1182
1183
if ( isLocked && performance . now ( ) - lastScroll > 150 ) {
1183
1184
isLocked = false ;
1184
- ref . current . style . pointerEvents = '' ;
1185
+ node . style . pointerEvents = '' ;
1185
1186
}
1186
1187
}
1187
1188
@@ -1255,7 +1256,7 @@ function BrowserChrome({children, hasPulse, hasRefresh, domain, path}) {
1255
1256
< div className = "mx-auto max-w-3xl shadow-nav dark:shadow-nav-dark relative overflow-hidden w-full dark:border-opacity-10 rounded-2xl" >
1256
1257
< div className = "w-full h-14 rounded-t-2xl shadow-outer-border backdrop-filter overflow-hidden backdrop-blur-lg backdrop-saturate-200 bg-white bg-opacity-90 z-10 absolute top-0 px-3 gap-2 flex flex-row items-center" >
1257
1258
< div className = "select-none h-8 relative bg-gray-30/20 text-sm text-tertiary text-center rounded-full w-full flex-row flex space-between items-center" >
1258
- < div className = "h-4 w-6" />
1259
+ { hasRefresh && < div className = "h-4 w-6" /> }
1259
1260
< div className = "w-full leading-snug flex flex-row items-center justify-center" >
1260
1261
< svg
1261
1262
className = "text-tertiary mr-1 opacity-60"
@@ -1444,7 +1445,10 @@ function VideoList({videos, emptyHeading}) {
1444
1445
function SearchInput ( { value, onChange} ) {
1445
1446
const id = useId ( ) ;
1446
1447
return (
1447
- < form className = "mb-3 py-1" data-hover = "SearchInput" >
1448
+ < form
1449
+ className = "mb-3 py-1"
1450
+ data-hover = "SearchInput"
1451
+ onSubmit = { ( e ) => e . preventDefault ( ) } >
1448
1452
< label htmlFor = { id } className = "sr-only" >
1449
1453
Search
1450
1454
</ label >
0 commit comments