퍼블 반영 2025-07-22 at 오후 12:06 까지 완료
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -2128,7 +2128,7 @@ function SelectBox() {
|
||||
};
|
||||
actions.close = () => {
|
||||
$target.querySelector(`${selectComboBox} :last-child`).textContent =
|
||||
$target["options"][$target.selectedIndex]?.textContent ?? props.default;
|
||||
$target["options"]?.[$target.selectedIndex]?.textContent ?? props.default;
|
||||
closeState();
|
||||
};
|
||||
actions.select = () => {
|
||||
@@ -2284,9 +2284,9 @@ function SelectBox() {
|
||||
const selectScroll = $target.querySelector('.select-scroll');
|
||||
|
||||
if (selectOptions && selectHeader && selectScroll) {
|
||||
// 전체 디바이스 높이의 75% (25% 제외)
|
||||
// 전체 디바이스 높이에서 160px 제외
|
||||
const deviceHeight = window.innerHeight;
|
||||
const targetHeight = deviceHeight * 0.75;
|
||||
const targetHeight = deviceHeight - 160;
|
||||
|
||||
// select-header 높이 계산
|
||||
const headerHeight = selectHeader.offsetHeight;
|
||||
|
||||
Reference in New Issue
Block a user