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

Select multiple not working #1934

Closed
ct12goa opened this issue Apr 16, 2024 · 14 comments
Closed

Select multiple not working #1934

ct12goa opened this issue Apr 16, 2024 · 14 comments

Comments

@ct12goa
Copy link

ct12goa commented Apr 16, 2024

I have created a form which has some input in the form of 'select multiple'. The form was working fine till last week, but today I noticed that while other select input fields are working normally, the 'multiple select' have issue. When we select the options, option disappears from the list, but is not shown in the field, as it used to be, The 'require' validation also fails.

To Reproduce

Please check google script - https://script.google.com/macros/s/AKfycbwMFgQ4Y6v8PV1fXvsVbqirOCrNoFyYa-ds7dSH1XGnI6hD_4Nm1UThP8slrwAmzF8/exec

The "Source Language", "Specialization" are multiple select field and are not working. "country" is single select and is working.

Here is the code:


Specialization
<? for (const specialization of specializations) { ?> <option><?=specialization ?></option> <? } ?> </select> </div> Expected behavior The selected option should appear on the blank input field. Screenshots Desktop (please complete the following information): OS: Windows 10 Browser [e.g. chrome, safari] Chrome Metro Version [e.g. 4.3.4] Additional context Add any other context about the problem here.
@olton
Copy link
Owner

olton commented Apr 16, 2024

Please create an example with your problem code on codepen.io.

@ct12goa
Copy link
Author

ct12goa commented Apr 16, 2024

I have created an example to demonstrate the issue here: https://codepen.io/ct12goa/pen/JjVayYW

Please check and help with this.
Thanks!

@olton
Copy link
Owner

olton commented Apr 16, 2024

fixed, check now

@olton olton closed this as completed Apr 16, 2024
@ct12goa
Copy link
Author

ct12goa commented Apr 16, 2024

Thanks, but it is still the same. Do I have to make any change to the code?

@ct12goa
Copy link
Author

ct12goa commented Apr 16, 2024

I receive this error message on console (on inspect page). Please see if this helps:

metro.js:6 Uncaught TypeError: Cannot read properties of undefined (reading 'split')
at forEach.$.fn. [as addClass] (metro.js:6:63197)
at Object._addTag (metro.js:12:348510)
at HTMLLIElement. (metro.js:12:353858)
at HTMLUListElement.func_event_click_31 (metro.js:6:55824)

@olton
Copy link
Owner

olton commented Apr 16, 2024

Wait for the CDN to update

@ct12goa
Copy link
Author

ct12goa commented Apr 17, 2024

UPDATE: Checked just now. It is still the same. I didn't notice any change.

@olton
Copy link
Owner

olton commented Apr 17, 2024

@ct12goa
Copy link
Author

ct12goa commented Apr 17, 2024

Thanks for looking into this, but I checked and it is still not working for me. Can you check in the example at codepen created by me here:
https://codepen.io/ct12goa/pen/JjVayYW

@ct12goa
Copy link
Author

ct12goa commented Apr 17, 2024

Thanks for sharing the video. I can see that you were able to do that. But, why I can't replicate the same here?

@ct12goa
Copy link
Author

ct12goa commented Apr 17, 2024

UPDATE: I checked on Edge browser and seems it is working. But, it is not working on Chrome. I will check on other browser settings and will let you know.

@olton
Copy link
Owner

olton commented Apr 17, 2024

Ctrl+F5 to clear browser cache

@ct12goa
Copy link
Author

ct12goa commented Apr 17, 2024

Ah, many thanks Serhii! You are a life saver!!

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

2 participants