jQuery 2.x → 3.3.1 upgrade した時、jquery-ui エラー
Uncaught TypeError: Cannot read property 'step' of undefined
StackoverFlow に書いてあるように、
https://stackoverflow.com/questions/45356723/jquery-ui-cannot-read-property-step-of-undefined
jQuery slim バージョン(jquery-3.3.1.slim.min.js)を使うと
jquery-ui 内部で重要ないくつかの機能 function が削除されてしまうとのこと、、
こうすべきだ。(CDN使用なら)
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script> <link href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" rel="stylesheet"/> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>