Bug in Donation Drop-Down Using Google Chrome

13 years 11 months ago #131542 by atlscoob
Working with cbSubs and created a donation plan using the suggested amounts drop-down along with the "Other" option which would allow user's to enter any amount.

Everything works great in all browsers except Google Chrome. When a user selects the "Other..." option the free form text box appears in all other browsers. However in Google Chrome there is a major glitch. The free form box does not initially appear. It appears the only way to make the box appear is to click the drop down arrow a second time.



It is urgent that I get this fixed as the client is of course a Google Chrome user and refuses to move forward until the problem is solved.

I appreciate your prompt attention to this problem and look forward to finding a fix for this bug.
Attachments:

Please Log in to join the conversation.

13 years 11 months ago #131554 by nant
looks like an old webkit bug that is still in chrome
but we will try to find a workaround if possible

marked as #1669

Please Log in to join the conversation.

13 years 11 months ago #131652 by beat
Ok, workaround found for next CBSubs version.

The bug of Chrome is as follows: the drop-down does not generate click events.
Interestingly, in Safari it does generate them (this is due to a bug we reported around a year back to webkit team, and somehow safari picked up the fix, but not Chrome).

Anyway, Fix is pretty easy and as follows:

Open file components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/js/cbpaidsubscriptions.js

Around line 168:

Change: the "click"
[code:1] $('#cbregUpgrades select.cbregDonationSelector').click( paidsubsDonationSelect );
[/code:1]

To: a "change" as follows:

[code:1] $('#cbregUpgrades select.cbregDonationSelector').change( paidsubsDonationSelect );
[/code:1]

Then copy (overwriting) the file cbpaidsubscriptions.js into cbpaidsubscriptions.min.js in same folder.

Then reload page in browser, and/or clear cache and it should work (at least works in Chrome Mac beta here, as well as in all other browsers we test).

Please confirm the fix for you.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.172 seconds

Facebook Twitter LinkedIn