foundation-sites icon indicating copy to clipboard operation
foundation-sites copied to clipboard

Custom forms and select component

Open alexandremjacques opened this issue 14 years ago • 10 comments

If a initializes with a wrong size, smaller than it should. Upon the selection of an item, it returns to its right size. Ex.:

Basic
<div class="row">
    <div class="two columns">
        <label>Client Type</label>
        <select id="clientType" name="clientType">
            <option>...</option>
            <option>...</option>
            <option>...</option>
        </select>
    </div>
    <div class="ten columns>...</div>

alexandremjacques avatar Jul 11 '12 00:07 alexandremjacques

Confirmed. Reassigning this to Jordan to check out.

smileyj68 avatar Jul 12 '12 15:07 smileyj68

This doesn't only happen with fieldset > row > column. I have row > column > row > column > row > column and I'm seeing the same behaviour.

Edit: I'd try and debug it myself but I'm using it in a rails project with the zurb-foundation gem and it's really hard to debug 3rd-party-libraries with the asset pipeline :(

pnomolos avatar Aug 18 '12 19:08 pnomolos

Any workarounds for this? I am having the same issue.

kelicia avatar Sep 19 '12 17:09 kelicia

I'm not seeing this issue with the latest version (3.1). Anyone have some sample code that they can share that shows this issue?

ghost avatar Sep 21 '12 23:09 ghost

With this you should have the issue, mostly an issue when you want to have several form elements per line, and therefore you try to put divs (or maybe other containers) inside your form.

<div class="row">
    <div class="twelve columns">
        <form class="custom" name="add">
            <div class="three columns">
                <label for="year">Year</label>
                <select name="year">
                    <option value="2000">2012</option>
                    <option value="2000">2011</option>
                    <option value="2000">2010</option>
                    <option value="2000">2009</option>
                </select>
            </div>
        </form>
    </div>
</div>

benjR avatar Oct 05 '12 12:10 benjR

I'm still seeing this as well on Foundation 3.2.

ezp-matt avatar Oct 31 '12 08:10 ezp-matt

Same problem here.

Beerlover88 avatar Oct 31 '12 17:10 Beerlover88

Also having the same problem. Adding class no-custom until this issue is resolved.

ericschoville avatar Oct 31 '12 19:10 ericschoville

Adding the "expand" class seems to be usable as a workaround. It forces the element to extend to the full width of the container.

bretbelgarde avatar Nov 07 '12 17:11 bretbelgarde

I just nested custom forms and this seems to have been fixed as far as I can tell. Anyone else still seeing this issue?

hatefulcrawdad avatar Feb 02 '13 07:02 hatefulcrawdad