수정 ,삭제시 비밀번호 폼에 공백 방지지
This commit is contained in:
parent
52c211bf08
commit
fabb1c2c3f
@ -24,7 +24,7 @@
|
||||
class="form-control"
|
||||
:value="password"
|
||||
placeholder="비밀번호 입력"
|
||||
@input="$emit('update:password', $event.target.value.trim())"
|
||||
@input="filterInput"
|
||||
/>
|
||||
<button class="btn btn-primary" @click="logPasswordAndEmit">확인</button>
|
||||
</div>
|
||||
@ -122,6 +122,11 @@
|
||||
'update:password',
|
||||
]);
|
||||
|
||||
const filterInput = (event) => {
|
||||
event.target.value = event.target.value.replace(/\s/g, ""); // 공백 제거
|
||||
emit("update:password", event.target.value);
|
||||
};
|
||||
|
||||
const localEditedContent = ref(props.comment.content);
|
||||
|
||||
// 댓글 입력 창 토글
|
||||
|
||||
@ -103,7 +103,8 @@
|
||||
textAlert.value = '';
|
||||
};
|
||||
|
||||
const passwordAlertTextHandler = () => {
|
||||
const passwordAlertTextHandler = (event) => {
|
||||
event.target.value = event.target.value.replace(/\s/g, "");
|
||||
passwordAlert2.value = '';
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user