Intro
μλ νμΈμ. μ΄λ² μκ°μλ MUI Dialog Component μμ νμ΄ν ν€ (PgUp, PgDn) Internal scroll μ μΆκ°νλ λ°©λ²μ λν΄ μμλ³΄κ² μ΅λλ€.
Mui Dialog Component
<React.Fragment>
<Button variant="outlined" onClick={handleClickOpen}>
Open full-screen dialog
</Button>
<Dialog
fullScreen
open={open}
onClose={handleClose}
TransitionComponent={Transition}
>
<AppBar sx={{ position: 'relative' }}>
<Toolbar>
<IconButton
edge="start"
color="inherit"
onClick={handleClose}
aria-label="close"
>
<CloseIcon />
</IconButton>
<Typography sx={{ ml: 2, flex: 1 }} variant="h6" component="div">
Sound
</Typography>
<Button autoFocus color="inherit" onClick={handleClose}>
save
</Button>
</Toolbar>
</AppBar>
<List>
<ListItemButton>
<ListItemText primary="Phone ringtone" secondary="Titania" />
</ListItemButton>
<Divider />
<ListItemButton>
<ListItemText
primary="Default notification ringtone"
secondary="Tethys"
/>
</ListItemButton>
</List>
</Dialog>
</React.Fragment>
MUI Full Dialog μμλ λ€μκ³Ό κ°μ΅λλ€. μ μ½λ νμ© μμ κΈ°λ³Έμ μΌλ‘ νμ΄ν λ°©ν₯ν€ μ€ν¬λ‘€μ΄ μλνμ§ μμ΅λλ€. PgUp, PgDn λ²νΌλ λ§μ°¬κ°μ§κ³ μ.
How to solve problem
<Dialog open={open} aria-labelledby="dialog-title">
<DialogTitle id="dialog-title">Modal title</DialogTitle>
<DialogContent dividers tabIndex={0}>
<div className={classes.DialogContent}>
</div>
</DialogContent>
</Dialog>
DialoContent νκ·Έμ tabIndex={0} μμ±μ μΆκ°νλ©΄ νμ΄ν€ νλ₯Ό ν΅ν΄ up & down μ€ν¬λ‘€μ μ€νμν¬ μ μμ΅λλ€. PgUp, PgDn λ²νΌλ μ μλνκ³ μ.
Conclusion
Mui Full Dialog λ₯Ό μ΄μ©νλ©΄μ μ€ν¬λ‘€μ΄ μκΈ΄ νλ©΄μ λν΄ νμ΄νν€κ° λ¨Ήμ§ μμ λ΅λ΅νλλ°, ν΄λΉ μμ±μ μ μ©νλ λ°λ‘ μλλμ΄ νΈνκ² μ΄μ©ν μ μμμ΅λλ€ :)