Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

글자수 제한 #2

Open
ktseo41 opened this issue Jul 3, 2022 · 3 comments
Open

글자수 제한 #2

ktseo41 opened this issue Jul 3, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@ktseo41
Copy link
Owner

ktseo41 commented Jul 3, 2022

No description provided.

@ktseo41 ktseo41 changed the title 글자수 제한, 제한 시각화 글자수 제한 Jul 3, 2022
@ktseo41 ktseo41 added the enhancement New feature or request label Jul 3, 2022
@ktseo41
Copy link
Owner Author

ktseo41 commented Jul 8, 2022

처음에는 글자수로 표기해서 지정된 영역을 넘어가지 않도록 하고 + 현재 글자수, 최대 글자수를 표기해주려고 했음

하지만 이미 글자수를 채워가면서 스스로 시각화를 하고 있는 거라서 overflow: hidden로만 변경하기로

@ktseo41 ktseo41 closed this as completed Jul 8, 2022
@ktseo41
Copy link
Owner Author

ktseo41 commented Jul 8, 2022

대신 input 이벤트에서 ref의 clientHeight, scrollHeight가 달라진걸 감지한 후 달라졌으면 영역 초과.

강제로 이전 값으로 덮어씌운 후 경고 문장을 띄운다.

메모장 전체를 살짝 흔들면서

@ktseo41
Copy link
Owner Author

ktseo41 commented Sep 7, 2022

#25 글자수 표기 해줌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant