Commit 5ce39d5a authored by Johnny Santos's avatar Johnny Santos Committed by Liam Morland
Browse files

Issue #3016408: Make max value appear in stepped number selector even when not on a step

parent 86fbd793
Loading
Loading
Loading
Loading
+3 −7
Changes for components/number.inc: 3 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -781,14 +781,10 @@ function _webform_number_select_options($component) {
    $options[$f . ''] = $f . '';
  }

  // @todo HTML5 browsers apparently do not include the max value if it does
  // not line up with step. Restore this if needed in the future.
  // Add end limit if it's been skipped due to step.
  // @code
  // if (end($options) != $max) {
  //   $options[$f] = $max;
  // }
  // @endcode
  if (end($options) != $max) {
    $options[$f] = $max;
  }
  if ($flipped) {
    $options = array_reverse($options, TRUE);
  }