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

Form only works after page refresh (rails 5.2.8.1, jquery 4.5.1) #149

Open
afgnsu opened this issue Apr 12, 2023 · 1 comment
Open

Form only works after page refresh (rails 5.2.8.1, jquery 4.5.1) #149

afgnsu opened this issue Apr 12, 2023 · 1 comment

Comments

@afgnsu
Copy link

afgnsu commented Apr 12, 2023

nathanvda/cocoon#520

請教大家,我也遇到類似的問題,我的新增表單 jQuery欄位屬性必須要按網頁瀏覽器的F5重新整理才會正常顯示。我的版本資訊如下:

  • Ruby:2.7.7

  • Rails:5.2.8.1

  • Gemfile:

gem 'bootstrap'  #RWD網站開源前端框架 v5.2.3
gem 'bootstrap_form'  #Bootstrap表單 v5.0.0
gem 'toastr-rails'  #Bootstrap快閃訊息 v1.0.3
gem 'font-awesome-rails'  #漂亮小圖 v4.7.0.8
gem 'webdrivers'  #瀏覽器除錯用 v5.2.0
gem 'devise'  #快速註冊、帳密登入驗證 v4.9.0
gem 'cancancan'  #權限設定 v3.5.0
gem 'kaminari'  #分頁 v1.2.2
gem 'jquery-rails'  #JavaScript函式庫 v4.5.1
gem 'chosen-rails'  #下拉選單插件 v1.10.0

  • app/assets/javascripts/application.js
//= require jquery3
//= require turbolinks
//= require rails-ujs
//= require activestorage
//= require popper
//= require bootstrap
//= require toastr
//= require chosen-jquery
//= require scaffold
//= require_tree .

我按F12沒有跳出任何錯誤,請問大家有遇過類似的問題嗎? 該如何解決呢?

@afgnsu
Copy link
Author

afgnsu commented Apr 12, 2023

#新增
2023-04-12_110357
#按F5重新整理後正常
2023-04-12_110342

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

No branches or pull requests

1 participant