Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EuiSuperSelect #921

Merged
merged 37 commits into from
Aug 16, 2018
Merged

EuiSuperSelect #921

merged 37 commits into from
Aug 16, 2018

Conversation

cchaos
Copy link
Contributor

@cchaos cchaos commented Jun 12, 2018

Addresses #274 , fixes #978


This creates a custom EuiPopover implementation that styles the triggering button to look like a EuiSelect and populates a list of EuiContextMenuItems based on an options object prop.

screen shot 2018-06-12 at 16 12 06 pm

The issue right now is that it still behaves like a popover and not a select. Things that need help:

  • Utilize the same keyboard functionality as in EuiComboBox
  • Fix the focus/active states of the triggering button
  • Probably better positioning either from EuiComboBox or whatever the fix is going to be for EuiPopover

@cchaos
Copy link
Contributor Author

cchaos commented Jun 12, 2018

@chandlerprall Do you think you could help out with the JS stuff for this one?

@snide
Copy link
Contributor

snide commented Jun 12, 2018

Does it need the isInvalid stuff as the typical EuiSelect does? If so, what does it do and how will it need to be implemented

Yes, we'll need it. Though I think it should just come from EuiFormRow the same as any other. You'll just want to pass some form of isInvalid prop into this component as well. I'm guessing that will do literally nothing other than make the underline red.

@chandlerprall
Copy link
Contributor

@cchaos yeah, no problem! I can get to it later today / tomorrow

@cchaos cchaos removed the prototype label Jun 25, 2018
@cchaos cchaos force-pushed the 274-super-select branch from d18308a to 42a4b9e Compare June 26, 2018 15:52
@cchaos
Copy link
Contributor Author

cchaos commented Jul 9, 2018

@chandlerprall, Any chance you will be able to get back to this this week?

@chandlerprall
Copy link
Contributor

@cchaos yes! Sorry, fell off my radar.

@cchaos
Copy link
Contributor Author

cchaos commented Jul 30, 2018

@chandlerprall Sorry, I merged your width PR in without testing. I noticed that when the popover is closing it doesn't maintain the determined width: https://d.pr/free/v/xzqbKp

@cchaos
Copy link
Contributor Author

cchaos commented Aug 3, 2018

@chandlerprall thoughts on the above?

@cchaos
Copy link
Contributor Author

cchaos commented Aug 3, 2018

Ok, this is finally no longer a WIP. Ready for review!

Copy link
Contributor

@snide snide left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Read through the code, tested both the new select and the adjusted context menu in IE11 and Chrome. Also went and built one to test it out.

Comments are pretty minor. Feel free to merge on your time.

I'd do three lines for your changelog. One for the new component, one for the popover change (hasArrow) and one for the context menu layout stuff.


render() {
return (
<Fragment>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can prolly yank this fragment. Look like there's only one child?


render() {
return (
<Fragment>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again here

text: (
<div>
<p>
This is a simple replacement component for <EuiCode>EuiSelect</EuiCode> if you
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be nice if over on the EuiSelectdocs we back to this EuiSuperSelect page as well. Guessing a lot of people would find it from there.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added.

@@ -34,3 +34,19 @@
.euiContextMenuItem__arrow {
align-self: flex-end;
}

.euiContextMenu__itemLayout {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't look too deep here, but IE11 has some fuzziness (that you don't see on github docs) now. Could be related to the shadow stuff in popover in a previous PR?

This PR

image

Live github docs

image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note, that I would spend 5 minutes on this. I don't think it's a big deal, was just something small i noticed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The whole popover is fuzzy (even the text). I don't think it's related to the drop shadow stuff. I'll look into it though.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could very well be from fractional numbers on popover positioning. LMK if that's the issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, my local looks fine:

screen shot 2018-08-06 at 13 43 52 pm

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even with decimal placement it is fine:

screen shot 2018-08-06 at 13 46 14 pm

Though, @chandlerprall maybe the positioning service should just go ahead and round to a whole number?

}
}

.euiSuperSelect__popoverPanel[class*="bottom"] {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this do? If it's anticipating a particular class, then maybe it makes more sense to use that specific class name(s) here so it's easier to find the reference if you change that class name?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So instead of relying on a full classname that is created by a different component like .euiPopover__panel-bottom, all I care about is the direction portion bottom. So if the prefix to the class name ever changes, it won't affect this component that depends on it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's important to remember we're also writing this codebase for everybody (Kibana team at large and community contributors)... so we should think about the point of view coming into this code and trying to figure out what it does so that they can either debug something or submit a PR. If someone comes to the super select and reads this line, they need to reverse engineer how the super select works in conjunction with the popover to understand what classes it could be interacting with. This line gives the reader a clue, and then the reader needs to spend time figuring it out.

But if it was just .euiSuperSelect__popoverPanel.euiPopover__panel-bottom then the line tells the reader exactly what it does, and they can focus their time on their PR rather than trying to decipher the code.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think your concern is about needing to "reverse engineer" than just now knowing what that selector means. This type of selector is a very common one and we shouldn't need to be explicit (and therefore too dependent) for those that just aren't as CSS knowledgable. Its a quick lookup and you can easily see the result or debug in the browser's dev tools.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is worth blocking on, so I'm OK with merging this PR without this change. But if you want to know more about my motivations, here's a great article on the importance of writing code so it can be understood (not saying that you don't care about this already, but I just thought it's worth sharing).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I'll do is just add a comment about where that's coming from so then at least it's understandable.

@@ -0,0 +1,3 @@
.euiTest {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming this isn't supposed to be here?

e.preventDefault();
e.stopPropagation();
this.shiftFocus(SHIFT_BACK);
} else if (e.keyCode === keyCodes.DOWN) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works great, love that it goes back to the top. I'd also add a key event for "space" that does the same as down so that it mirrors the behavior of a HTML select.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does SPACE not work as expected for you? For me, if the select box is focused but not open SPACE opens the options list, if an option is focused SPACE selects that option and closes the dropdown.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SPACE works for me

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, sorry, chatted this in slack. Was a bad report on my side. This works as expected.

@@ -131,6 +131,11 @@
}
}
}


&.euiPopover__panel-noArrow .euiPopover__panel__arrow {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Element of an element? Maybe just make this something unique?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, should have been more direct.

.euiPopover__panel__arrow

I think we've tried to avoid using underscores twice in a single selector. My read of this is that arrow is an element of the element panel of the block popover.

Should it just be....

euiPopover__panelArrow as the element of popover instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that was leftover from another PR, but I can change it here

@cjcenizal
Copy link
Contributor

Wow, the globalToastList tests failed... now THAT'S weird.

19:12:24 FAIL src/components/toast/global_toast_list.test.js
19:12:24   ● EuiGlobalToastList › props › dismissToast › is called when the toast lifetime elapses
19:12:24 
19:12:24     expect(received).toBe(expected)
19:12:24     
19:12:24     Expected value to be (using Object.is):
19:12:24       true
19:12:24     Received:
19:12:24       false
19:12:24 
19:12:24        96 |         // The callback is invoked once the toast fades from view.
19:12:24        97 |         setTimeout(() => {
19:12:24     >  98 |           expect(dismissToastSpy.called).toBe(true);
19:12:24        99 |           done();
19:12:24       100 |         }, TOAST_LIFE_TIME_MS + TOAST_FADE_OUT_MS + 10);
19:12:24       101 |       });
19:12:24       
19:12:24       at src/components/toast/global_toast_list.test.js:98:42
19:12:24       at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:633:19)
19:12:24 
19:12:24   ● EuiGlobalToastList › props › dismissToast › is called when the toast lifetime elapses
19:12:24 
19:12:24     Error: Uncaught [Error: expect(received).toBe(expected)
19:12:24     
19:12:24     Expected value to be (using Object.is):
19:12:24       true
19:12:24     Received:
19:12:24       false]
19:12:24 
19:12:24       2 | // failed prop types check.
19:12:24       3 | console.error = message => {
19:12:24     > 4 |   throw new Error(message);
19:12:24       5 | };
19:12:24       6 | 
19:12:24       
19:12:24       at reportException (node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
19:12:24       at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:635:7)
19:12:24       at BufferedConsole.Object.<anonymous>.console.error (scripts/jest/setup/throw_on_console_error.js:4:9)
19:12:24       at VirtualConsole.on.e (node_modules/jsdom/lib/jsdom/virtual-console.js:29:45)
19:12:24       at reportException (node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:70:28)
19:12:24       at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:635:7)

@cjcenizal
Copy link
Contributor

Retest

@cjcenizal
Copy link
Contributor

Jenkins test this?

Copy link
Contributor

@cjcenizal cjcenizal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏 This is awesome! I tested it in the browser and it works great. Code looks great overall, I just had a few suggestions with one big suggested change to the interface.

I did run into a problem with screen-reader accessibility. When I tab to the super select, VoiceOver on OS X doesn’t read the selected option. When I tab to a regular select element, the selected option is read aloud first, and then the element itself is identified. Can we fix this so the behaviors are identical/similar?

/>
);

const items = options.map((option, index) => {
Copy link
Contributor

@cjcenizal cjcenizal Aug 3, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can support passing through props here (see next comment):

    const items = options.map((option, index) => {
      const {
        value,
        dropdownDisplay,
        inputDisplay,
        ...optionRest
      } = option;

      return (
        <EuiContextMenuItem
          key={index}
          className={itemClasses}
          icon={valueOfSelected === value ? 'check' : 'empty'}
          onClick={() => this.itemClicked(value)}
          onKeyDown={this.onItemKeyDown}
          layoutAlign={itemLayoutAlign}
          buttonRef={node => this.setItemNode(node, index)}
          style={{ width: this.state.menuWidth }}
          { ...optionRest }
        >
          {dropdownDisplay || inputDisplay}
        </EuiContextMenuItem>
      );
    });

constructor(props) {
super(props);

this.options = [
Copy link
Contributor

@cjcenizal cjcenizal Aug 3, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add an example of disabled options and the application of pass-through props?

    this.options = [
      {
        value: 'option_one',
        inputDisplay: 'Option one',
        disabled: true,
        'data-test-subj': 'option one',
      },
      {
        value: 'option_two',
        inputDisplay: 'Option two',
      },
      {
        value: 'option_three',
        inputDisplay: 'Option three has a super long text to see if it will truncate or what',
      },
    ];

It looks like unexpected props aren't passed through.

}

onItemKeyDown = e => {
if (e.keyCode === keyCodes.ESCAPE) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

switch might be more appropriate here since all of the conditions assert against the same variable:

    const { ESCAPE, TAB, UP, DOWN } = keyCodes;

    // in all cases, close the popover and prevent ancestors from handling
    switch (e.keyCode) {
      case ESCAPE:
        e.preventDefault();
        e.stopPropagation();
        this.closePopover();
        break;

      case TAB:
        // no-op
        e.preventDefault();
        e.stopPropagation();
        break;

      case UP:
        e.preventDefault();
        e.stopPropagation();
        this.shiftFocus(SHIFT_BACK);
        break;

      case DOWN:
        e.preventDefault();
        e.stopPropagation();
        this.shiftFocus(SHIFT_FORWARD);
        break;
    }

* 2. Ensure the descenders don't get cut off
*/

.euiSuperSelectControl {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there's an extra space at the beginning of this line.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, my IDE doesn't like those comment blocks so anything afterward it tries to align to the comment.

}
}

.euiSuperSelect__popoverPanel[class*="bottom"] {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this do? If it's anticipating a particular class, then maybe it makes more sense to use that specific class name(s) here so it's easier to find the reference if you change that class name?

{
value: 'option_one',
inputDisplay: 'Option one',
dropdownDisplay: (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of putting inputDisplay and dropdownDisplay on each option, I think it might make more sense to treat these options as data-only, without any responsibility for rendering. Then we could provide props to the EuiSuperSelect instance itself to render the input and the dropdown. This will allow these options to be defined by an API response without requiring us to then decorate each option. This is similar to how EuiComboBox allows you customize the way each option is rendered (https://github.com/elastic/eui/blob/master/src-docs/src/views/combo_box/render_option.js#L117).

I'm thinking along these lines:

const healthToColorMap = {
  0: 'warning',
  1: 'subdued',
  2: 'danger',
};

const healthToNameMap = {
  0: 'Warning',
  1: 'Minor',
  2: 'Critical',
};

export default class extends Component {
  constructor(props) {
    super(props);

    this.options = [
      {
        value: 'option_one',
        // You can put anything you want inside of data.
        data: {
          name: 'Option one',
          description: 'Has a short description giving more detail to the option.',
          health: 0,
        },
      },
      {
        value: 'option_two',
        data: {
          name: 'Option two',
          description: 'Has a short description giving more detail to the option.',
          health: 1,
        },
      },
      {
        value: 'option_three',
        data: {
          name: 'Option three',
          description: 'Has a short description giving more detail to the option.',
          health: 2,
        },
      },
    ];

    this.state = {
      value: this.options[1].value,
    };
  }

  onChange = (value) => {
    this.setState({
      value: value,
    });
  };

  renderOption = option => {
    const { name, description, health } = option.data;

    return (
      <Fragment>
        <strong>{name}</strong>

        <EuiHealth color={healthToColorMap[health]} style={{ lineHeight: 'inherit' }}>
          healthToNameMap[health]
        </EuiHealth>

        <EuiSpacer size="xs" />
        <EuiText size="s" color="subdued">
          <p className="euiTextColor--subdued">{description}</p>
        </EuiText>
      </Fragment>
    );
  };

  renderSelectedOption = option => {
    return option.data.name;
  };

  render() {
    return (
      <Fragment>
        <EuiSuperSelect
          options={this.options}
          valueOfSelected={this.state.value}
          onChange={this.onChange}
          itemLayoutAlign="top"
          renderOption={this.renderOption}
          renderSelectedOption={this.renderSelectedOption}
          hasDividers
          aria-label="Use aria labels when no actual label is in use"
        />
      </Fragment>
    );
  }
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's valuable to have render-purposeful show this in the select box and show this in the drop down values. However, I would agree that also allowing a data param to help track the represented data would be helpful.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My worry with this option, is that each option is no longer customizable, unless you add a bunch of if statements in the render methods. You could still do a similar thing with the current mapping by using the render methods as calls within the options declaration.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, the flexibility is nice in the way its set up now. I see us switching things out more from item to item with this one than the combobox.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My worry with this option, is that each option is no longer customizable

Do we have an example use case where each option is completely different? Do you think this will be a common requirement? I think we should optimize for the common use case.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As it is right now, no. But it can be altered down the road to support this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @cchaos though I was more thinking from the technical perspective, e.g. is there a challenge with decorating hundreds (or thousands) of options with inputDisplay and dropdownDisplay properties, would it play well with react-virtualized, etc?

Copy link
Contributor

@snide snide Aug 14, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cjcenizal That screen looks like EuiFilterGroup, which has a current implementation within our table / search components (which you can see on those pages respectively). It even adds search once it gets beyond 10 items. Will that not cover what you need? I don't know about it's scaling abilities, but it's a 1-1 design against the screen you showed, so my guess is that's the component we'd update further.

By design EuiSuperSelect should not have search in it and is really just a stylized select of choices. We have combo box and the filter group stuff for the pattern you describe.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Example. I believe it also allows for multi-item selection, not just one item.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@snide Good call! Yes that could work, but it needs to be broken out into its own component. Looks like the table example you shared has it baked into its interface via the search prop, and the standalone EuiFilterGroup example is just using a hand-rolled popover.

If we were to break it out into its own component, then at first glance it looks like the only difference between it and EuiSuperSelect would be that one has search and the other doesn't.

<EuiSuperSelectControl
options={[
{ value: '1', inputDisplay: 'Option #1', disabled: false },
{ value: '2', inputDisplay: 'Option #2', disabled: true }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add tests for passing className and data-test-subj to the options?

@chandlerprall
Copy link
Contributor

I did run into a problem with screen-reader accessibility. When I tab to the super select, VoiceOver on OS X doesn’t read the selected option. When I tab to a regular select element, the selected option is read aloud first, and then the element itself is identified. Can we fix this so the behaviors are identical/similar?

@cchaos any thoughts here? It seems to me that to get similar Mac VoiceOver results we'd want to integrate an actual select box (which opens another issue, the select element that is included for form submission has display: none; which excludes its value from inclusion in form submissions). We probably could do something around building dynamic aria labels around the whole menu content, but the screen reader will still add ", button", etc, at the end.

@snide
Copy link
Contributor

snide commented Aug 7, 2018

I think we can probably solve it with some onFocus announcements. Specifically i don't think it matters if it's an actual select vs. a collection of buttons, and a role="group" with a proceeding announcement should work fine.

@cchaos
Copy link
Contributor Author

cchaos commented Aug 7, 2018

I'll defer to whatever choice makes it work.

@snide
Copy link
Contributor

snide commented Aug 7, 2018

@cchaos I'll give it a shot and submit your a PR.

@cchaos
Copy link
Contributor Author

cchaos commented Aug 10, 2018

@chandlerprall All there is now, for addressing feedback, revolves around the discussion of needing to provide inputDisplay and dropdownDisplay.

Copy link
Contributor

@cjcenizal cjcenizal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found a couple small things -- the only major blocker are the tests. The component navigation sounds good on VoiceOver. Great work @snide!


this.state = {
value: this.options[1].value,
inputDisplay: this.options[1].inputDisplay,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this isn't being consumed anywhere, so I think we can remove it?

onChange = (value) => {
this.setState({
value: value,
inputDisplay: this.options.inputDisplay,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then we can simplify this to:

this.setState({ value });

.toMatchSnapshot();
});

describe('props', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to mount the components in these tests and then click to open them or manually set the open state. We can then use the takeMountedSnapshot utility to get a snapshot of it. Otherwise the snapshots will just consist of closed super selects. Here's an example of a similar test with the combo box: https://github.com/elastic/eui/blob/master/src/components/combo_box/combo_box.test.js#L75

@snide
Copy link
Contributor

snide commented Aug 16, 2018

@cjcenizal can you verify the tests @chandlerprall merged in are what you'd expect. i think this one is good to go?

Copy link
Contributor

@cjcenizal cjcenizal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests look good, just had one suggestion about a test we might not need.

});

describe('props', () => {
test('options are rendered', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't look like this test is effective since the options list isn't open in the snapshot. But I also think it might not be necessary, since you're testing it indirectly in the super select test suite.

@cchaos cchaos merged commit 387c736 into elastic:master Aug 16, 2018
@cchaos cchaos deleted the 274-super-select branch August 16, 2018 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Customizable super select component
4 participants