question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

<Input type="select"> size attribute don't work

See original GitHub issue

Issue description

if using <Input type="select" size="5"> then in DOM, size attribute is not applied

  • components: Input
  • reactstrap version 5.0.0-alpha.3
  • react version 16.0.0
  • bootstrap version 4.0.0-beta

Code

https://codesandbox.io/s/504m2rw7lp

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
TheSharpieOnecommented, Nov 24, 2017

Use a string such as size="5" just like you would for html.

1reaction
gergely-nagycommented, Oct 27, 2017

Thanks for your quick reply, @TheSharpieOne ! The size attribute is not only used for multiple select. Please refer to the link below. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-size So can we use the size prop for html attribute not just for bootstrap size?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Select size attribute size not working in Chrome/Safari?
I use the size attribute in the HTML for "other" browsers and then specify webkit appearance in CSS. Other types of menu list...
Read more >
HTML : Select size attribute size not working in Chrome/Safari?
HTML : Select size attribute size not working in Chrome/Safari? [ Gift : Animated Search Engine : https://bit.ly/AnimSearch ] HTML : Select ......
Read more >
<input>: The Input (Form Input) element - HTML
A field for editing an email address. Looks like a text input, but has validation parameters and relevant keyboard in supporting browsers and ......
Read more >
<select size> "broken" on smartphones? - HTMLHelp Forums
It seems to me there is a problem how smartphones display the HTML "select" tag when the "size" attribute is used. No matter...
Read more >
HTML select size Attribute - W3Schools
Note: In Chrome and Safari, this attribute may not work as expected for size="2" and size="3" . Syntax. <select size="number">. Attribute Values. Value ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found