[TPopUp] 옵션재고수량이 없는경우 selected 안되게 예외처리
This commit is contained in:
@@ -222,13 +222,17 @@ export default function TPopUp({
|
||||
{...rest}
|
||||
className={classNames(
|
||||
css.option,
|
||||
index === selectedIndex && css.selectedOption,
|
||||
optStkQty > 0 &&
|
||||
index === selectedIndex &&
|
||||
css.selectedOption,
|
||||
|
||||
index == selectedIndex && css.focused,
|
||||
optStkQty <= 0 && css.optionSoldOut
|
||||
)}
|
||||
spotlightId={`selectedOptionBtn-${index}`}
|
||||
onClick={selectedOptClick(index)}
|
||||
onClick={
|
||||
optStkQty && optStkQty > 0 && selectedOptClick(index)
|
||||
}
|
||||
key={`option: ${index}`}
|
||||
aria-label={optNm ? optNm : prodOptCval}
|
||||
spotlightDisabled={optStkQty && optStkQty <= 0}
|
||||
|
||||
Reference in New Issue
Block a user