Bootstrap 5 無法顯示瀏覽器預設

就這東西啦

https://bootstrap5.hexschool.com/docs/5.0/forms/validation/#browser-defaults

找了我半天……

最後解法長這樣。

:root {
  scroll-behavior: auto !important;
}

為何啊……

參考資料:

on Bootstrap5, browser default validation message does not showed when the page is so long

https://github.com/twbs/bootstrap/issues/33757