Grommet: Have Sort accept a {value: , label: } object

Created on 7 Sep 2017  路  4Comments  路  Source: grommet/grommet


Sort does not highlight the current selected value in the select / "dropdown" when Select does.

Expected Behavior


Highlight current selected option.
screen shot 2017-09-07 at 17 16 16

Actual Behavior


No option is selected.
screen shot 2017-09-07 at 17 16 26

URL, screen shot, or Codepen exhibiting the issue

see above

Steps to Reproduce

  1. Go to https://grommet.github.io/docs/sort
  2. Switch Name to Modified
  3. Open Dropdown again and see that nothing is selected.

Your Environment

  • Grommet version: 1.7
  • Browser Name and version: Chrome Version 63.0.3208.0
  • Operating System and version (desktop or mobile): OSX 10.12.6

Steps to possibly fix it

Have Sort accept a {value: , label: } object like Select

All 4 comments

Reproduced this issue in my sandbox.

If the docs run on 1.8.3, then this issue still exists in the latest version. ... btw. would be great if the docs show the version they run on ;)

Created PR 16 in the grommet-addons project for this issue:
#https://github.com/grommet/grommet-addons/pull/16

Great suggestion about showing the grommet version in the docs! I created a new grommet-docs issue 297 for this:
https://github.com/grommet/grommet-docs/issues/297

Rolled in feedback from Alan and re-tested.

PR 16 in grommet-addons was merged to fix this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RyanCCollins picture RyanCCollins  路  3Comments

csclyde picture csclyde  路  3Comments

santaclauze picture santaclauze  路  3Comments

iMerica picture iMerica  路  4Comments

ezu picture ezu  路  4Comments