redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

Radio Button and Button Set Folding

Open javierencalada opened this issue 13 years ago • 9 comments

Hi, im working in a theme so the radio button and button set doesn't allow required fields.

Another issue when i use button set: the clicked button scroll up to the top of the window. Im using Chrome on Windows 7

Thanks!

javierencalada avatar Nov 08 '13 21:11 javierencalada

I faced the same issue.

cyberwani avatar Nov 12 '13 08:11 cyberwani

I think I just fixed it. Please verify.

dovy avatar Nov 13 '13 05:11 dovy

I tried it. On Radio Button and Button Set it is working, but it is not working proper with nested options.

cyberwani avatar Nov 13 '13 12:11 cyberwani

Hi, I have tested it with required options. Now if you select an option of the buttonset, it acts as expected, unfolding the required option, but it always take you to the top of the page. I dont know if maybe is a problem with typewatch.js (Dovy, where did you enqueue this file?) or with the redux_change function.

vertigo7x avatar Nov 13 '13 15:11 vertigo7x

Yes, I am so confused by the scroll to the top of the page. Does anyone have any ideas what that can be? I've spent hours searching for it... :(

dovy avatar Nov 13 '13 15:11 dovy

FINALLY fixed the button_set scrolling issue! Behold the Wordpress Bug: http://core.trac.wordpress.org/ticket/25940#ticket

I just submitted a ticket.

I also found a fix. Yay.

dovy avatar Nov 13 '13 16:11 dovy

Thanks! now works pretty good!

javierencalada avatar Nov 13 '13 16:11 javierencalada

Button sets are working properly right now, but not with nested options. I have a switch that when is enabled, shows a button set option. The button have a default value and it should display another child option, but it doesn't. You need to change the value of the set button and click again the default one to display the child item.

ghost avatar Nov 15 '13 18:11 ghost

So that's an issue with required and not the button_set then. Let's open a new ticket and I'll get to it later. Sorry nested still have some concerns. If you can find the issue I would be most grateful!

dovy avatar Nov 20 '13 06:11 dovy