fix: 사용자 입력 필드 검증 제거 및 오류 수정

- "지적" 및 "가로", "세로" 필드의 필수 입력(validation-check) 검증 제거
- 필드 공백 시 계산 함수 호출 방지 로직 추가 (`on blur` 이벤트 처리 수정)
dev
박성영 1 month ago
parent a98b8efb89
commit a6e2d2dd5d

@ -89,13 +89,13 @@
</td>
</tr>
<tr>
<th class="th"><span class="required">*</span> 가로(m)</th>
<th class="th">가로(m)</th>
<td>
<input type="text" id="wdth" name="wdth" class="input decimalMask" style="width: 120px;" maxlength="10" placeholder="예) 5.25" validation-check="required" value="${data.wdth}"/>
<input type="text" id="wdth" name="wdth" class="input decimalMask" style="width: 120px;" maxlength="10" placeholder="예) 5.25" value="${data.wdth}"/>
</td>
<th class="th"><span class="required">*</span> 세로(m)</th>
<th class="th">세로(m)</th>
<td>
<input type="text" id="vrtc" name="vrtc" class="input decimalMask" style="width: 120px;" maxlength="10" placeholder="예) 8.75" validation-check="required" value="${data.vrtc}"/>
<input type="text" id="vrtc" name="vrtc" class="input decimalMask" style="width: 120px;" maxlength="10" placeholder="예) 8.75" value="${data.vrtc}"/>
</td>
</tr>
<tr>
@ -225,6 +225,7 @@
// 중요한 로직 주석: 가로와 세로 값 입력이 완료되면(blur) 자동으로 면적을 계산하여 입력한다.
// input 이벤트 제거: inputmask와 충돌하여 정상 동작하지 않음
$('#wdth, #vrtc').on('blur input', function() {
if( $(this).val() === '' ) return;
calculateArea();
});

@ -81,9 +81,9 @@
</td>
</tr>
<tr>
<th class="th"><span class="required">*</span> 지적</th>
<th class="th">지적</th>
<td>
<input type="text" id="ptout" name="ptout" class="input ptoutMask" style="width: 180px;" maxlength="25" placeholder="예) 12345.67" validation-check="required number" value="${data.ptout}"/>
<input type="text" id="ptout" name="ptout" class="input ptoutMask" style="width: 180px;" maxlength="25" placeholder="예) 12345.67" value="${data.ptout}"/>
</td>
<th class="th"><span class="required">*</span> 공시지가</th>
<td>

Loading…
Cancel
Save