usnistgov / NEMO

NEMO is a laboratory logistics web application. Use it to schedule reservations, control tool access, track maintenance issues, and more.
Other
135 stars 63 forks source link

[Bug report] Pickadate not loaded when using kiosk with chromium #252

Open r-xyz opened 3 weeks ago

r-xyz commented 3 weeks ago

The date and time picker (when creating reservations in kiosks) are not working anymore in recent versions of chromium.

Steps to reproduce

  1. Open kiosk page using Chromium
  2. Select a tool, make new reservation
  3. Click on date/time fields: nothing happens

Notes

This seem to only affect datetime pickers; Keyboard and numeric input keypad work as expected in kiosks. Everything works correctly in Firefox, but a similar warning is shown in console, too (see below).

Logs ### Chromium console logs ``` [Violation] Permissions policy violation: Synchronous requests are disabled by permissions policy. [3 times] send @ jquery.min.32015dd42e95.js:4 ajax @ jquery.min.32015dd42e95.js:4 n._evalUrl @ jquery.min.32015dd42e95.js:4 domManip @ jquery.min.32015dd42e95.js:3 append @ jquery.min.32015dd42e95.js:3 (anonymous) @ jquery.min.32015dd42e95.js:3 n.access @ jquery.min.32015dd42e95.js:2 html @ jquery.min.32015dd42e95.js:3 load_complete @ Cleanroom/:166 j @ jquery.min.32015dd42e95.js:2 fireWith @ jquery.min.32015dd42e95.js:2 x @ jquery.min.32015dd42e95.js:4 (anonymous) @ jquery.min.32015dd42e95.js:4 load send @ jquery.min.32015dd42e95.js:4 ajax @ jquery.min.32015dd42e95.js:4 ajax_message @ nemo.b6574a18bcce.js:503 ajax_post @ nemo.b6574a18bcce.js:492 tool_report_problem @ Cleanroom/:243 onclick @ Cleanroom/:1 Uncaught TypeError: $(...).pickadate is not a function at eval (eval at globalEval (jquery.min.32015dd42e95.js:2:2538), :5:50) at eval () at Function.globalEval (jquery.min.32015dd42e95.js:2:2538) at n.domManip (jquery.min.32015dd42e95.js:3:17203) at n.append (jquery.min.32015dd42e95.js:3:14886) at n. (jquery.min.32015dd42e95.js:3:16246) at n.access (jquery.min.32015dd42e95.js:2:30124) at n.html (jquery.min.32015dd42e95.js:3:15917) at Object.load_complete (Cleanroom/:166:32) at j (jquery.min.32015dd42e95.js:2:26911) eval @ VM223:5 globalEval @ jquery.min.32015dd42e95.js:2 domManip @ jquery.min.32015dd42e95.js:3 append @ jquery.min.32015dd42e95.js:3 (anonymous) @ jquery.min.32015dd42e95.js:3 n.access @ jquery.min.32015dd42e95.js:2 html @ jquery.min.32015dd42e95.js:3 load_complete @ Cleanroom/:166 j @ jquery.min.32015dd42e95.js:2 fireWith @ jquery.min.32015dd42e95.js:2 x @ jquery.min.32015dd42e95.js:4 (anonymous) @ jquery.min.32015dd42e95.js:4 load send @ jquery.min.32015dd42e95.js:4 ajax @ jquery.min.32015dd42e95.js:4 ajax_message @ nemo.b6574a18bcce.js:503 ajax_post @ nemo.b6574a18bcce.js:492 tool_report_problem @ Cleanroom/:243 onclick @ Cleanroom/:1 ``` ### Chromium issue log: ``` Deprecated feature used: Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/. Affected resources: jquery.min.32015dd42e95.js:4 ``` ### Firefox Console log: ``` Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help https://xhr.spec.whatwg.org/#sync-warning [jquery.min.32015dd42e95.js:4:14161](http://localhost:8000/static/jquery.min.32015dd42e95.js) ```
r-xyz commented 2 weeks ago

https://xhr.spec.whatwg.org/#sync-warning