title: Bootstrap - Input group addons with input max-width
body: <p>I have problem with input groups addons on the right side of input.
  If you set max-width or width of input the unexpected behaviour appears:</p>
  
  <p><a href="https://i.stack.imgur.com/MDkt6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MDkt6.png" alt="enter image description here"></a>
  Code: <a href="https://jsfiddle.net/3vzwg942/1/" rel="nofollow noreferrer">https://jsfiddle.net/3vzwg942/1/</a></p>
  
  <pre><code>&lt;div class="input-group"&gt;
              &lt;input type="text" style='max-width: 280px;' class="form-control" placeholder="Search for..."&gt;
              &lt;span class="input-group-btn"&gt;
                  &lt;button class="btn btn-default" type="button"&gt;Go!&lt;/button&gt;
              &lt;/span&gt;
  &lt;/div&gt;
  &lt;br /&gt;
  &lt;div class="input-group"&gt;
      &lt;input type="text" style='max-width: 280px;' class="form-control" placeholder="Recipient's username" aria-describedby="basic-addon2"&gt;
      &lt;span class="input-group-addon" id="basic-addon2"&gt;@@example.com&lt;/span&gt;
  &lt;/div&gt;
  &lt;br /&gt;
  &lt;div class="row"&gt;
      &lt;div class="col-lg-6"&gt;
          &lt;div class="input-group"&gt;
              &lt;input type="text" style='max-width: 280px;' class="form-control" aria-label="..."&gt;
              &lt;div class="input-group-btn"&gt;
                  &lt;button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"&gt;Action &lt;span class="caret"&gt;&lt;/span&gt;&lt;/button&gt;
                  &lt;ul class="dropdown-menu dropdown-menu-right"&gt;
                      &lt;li&gt;&lt;a href="#"&gt;Action&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="#"&gt;Another action&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="#"&gt;Something else here&lt;/a&gt;&lt;/li&gt;
                      &lt;li role="separator" class="divider"&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="#"&gt;Separated link&lt;/a&gt;&lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/div&gt;&lt;!-- /btn-group --&gt;
          &lt;/div&gt;&lt;!-- /input-group --&gt;
      &lt;/div&gt;&lt;!-- /.col-lg-6 --&gt;
  &lt;/div&gt;&lt;!-- /.row --&gt;
  </code></pre>
  
  <p>is it possible to make it working with max-width?
  Thx for help</p>