The documentation for the range form element shows an example with input type number instead of range.

$form['quantity'] = array(
  '#type' => 'number',
  '#title' => $this->t('Quantity'),
);

Which should be

$form['quantity'] = array(
  '#type' => 'range',
  '#title' => $this->t('Quantity'),
);
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pontus_nilsson created an issue. See original summary.

pontus_nilsson’s picture

pontus_nilsson’s picture

Status: Active » Needs review
pontus_nilsson’s picture

Issue tags: +documentation bug

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

lucur’s picture

Patch works with 8.3.x.-dev

lucur’s picture

Status: Needs review » Reviewed & tested by the community

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 2: updatedocs-2762715-1.patch, failed testing.

lucur’s picture

Status: Needs work » Reviewed & tested by the community

The patch passed re-test for 8.3.x-dev and worked on a local installation.

  • catch committed dd67ab2 on 8.3.x
    Issue #2762715 by pontus_nilsson: Typo in documentation for range form...

  • catch committed 17d5442 on 8.2.x
    Issue #2762715 by pontus_nilsson: Typo in documentation for range form...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.3.x and cherry-picked to 8.2.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.