You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Webshim polyfill to guide a user step by step through parts of a form. A date input is hidden at page load style="display: none;". It's width is specified in percentage. Webshim sets the width of the input wrapper element (that is shown instead of the actual date input) at page load to a fixed width. It does not update the width of the wrapper element when it is shown $('#initiallyHidden').show();. But it updates the width if the user resizes the window.
I expected Webshim to update the width of the element wrapper automatically on show, but it does not. Is this intended?
<!DOCTYPE html><html><head><scriptsrc="https://code.jquery.com/jquery-2.1.4.js"></script><scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/webshim/1.15.10/dev/polyfiller.js"></script><metacharset="utf-8"><metaname="viewport" content="width=device-width"><title>JS Bin</title></head><body><formaction=""><buttonid="showHiddenInput">show hidden input</button><divid="initiallyHidden" style="display: none;"><inputname="initiallyHidden" type="date" class="full-width" required><labelfor="initiallyHidden">Input was initially hidden and should have full width (100%)</label></div></form></body></html>
The text was updated successfully, but these errors were encountered:
I asked a related question on StackOverflow, but I suspect this behavior might be a bug.
I use Webshim polyfill to guide a user step by step through parts of a form. A date input is hidden at page load
style="display: none;"
. It's width is specified in percentage. Webshim sets the width of the input wrapper element (that is shown instead of the actual date input) at page load to a fixed width. It does not update the width of the wrapper element when it is shown$('#initiallyHidden').show();
. But it updates the width if the user resizes the window.I expected Webshim to update the width of the element wrapper automatically on show, but it does not. Is this intended?
The text was updated successfully, but these errors were encountered: