Skip to content

Commit c574948

Browse files
authored
Update forms.md
1 parent ce61e0b commit c574948

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

content/docs/forms.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,7 @@ Ngoài ra, kể từ khi `setState()` tự động [gộp các phần của stat
271271

272272
## Controlled Input với giá trị null {#controlled-input-null-value}
273273

274-
<<<<<<< HEAD
275274
Cũng có ngoại lệ, giá trị của prop trong một [controlled component](/docs/forms.html#controlled-components) sẽ ngăn người dùng thay đổi nó trừ khi bạn cũng muốn vậy. Nếu bạn đã cung cấp một `value` nhưng thẻ input vẫn có khả năm bị sửa đổi, bạn đã vô tình gán `value` bằng với `undefined` hay `null`.
276-
=======
277-
Specifying the `value` prop on a [controlled component](/docs/forms.html#controlled-components) prevents the user from changing the input unless you desire so. If you've specified a `value` but the input is still editable, you may have accidentally set `value` to `undefined` or `null`.
278-
>>>>>>> f0a9793dff9f8e86ec365bfadb0b4b23c6f618ce
279275

280276
Đoạn code bên dưới sẽ làm rõ điều ta vừa đề cập. (Thẻ input đã được gán giá trị lúc bạn đầu nhưng trở nên có thể bị sửa đổi sau một khoảng thời gian chờ.)
281277

0 commit comments

Comments
 (0)