Skip to content

Card Picker: Fix Clicking cards#5425

Merged
zsarnett merged 2 commits intohome-assistant:devfrom
zsarnett:picker-fix
Apr 2, 2020
Merged

Card Picker: Fix Clicking cards#5425
zsarnett merged 2 commits intohome-assistant:devfrom
zsarnett:picker-fix

Conversation

@zsarnett
Copy link
Copy Markdown
Contributor

@zsarnett zsarnett commented Apr 2, 2020

Breaking change

Proposed change

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example configuration

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:
  • Link to documentation pull request:

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

@zsarnett zsarnett linked an issue Apr 2, 2020 that may be closed by this pull request
3 tasks
Comment on lines +249 to +250
top: 0;
left: 0;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

not needed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not needed indeed

left: 0;
width: 100%;
height: 100%;
z-index: 1;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

not needed I think?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is needed. Otherwise I can still toggle

Comment on lines +311 to +312
@click=${this._cardPicked}
.config=${cardConfig}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You didn't have to move this, but it it fine.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Gotcha I guess I didnt test with out changing. I just assumed it would be above it and not register the click on the lower element

@zsarnett zsarnett merged commit 8eebf51 into home-assistant:dev Apr 2, 2020
@zsarnett zsarnett deleted the picker-fix branch April 2, 2020 21:52
@bramkragten bramkragten mentioned this pull request Apr 3, 2020
@lock lock bot locked and limited conversation to collaborators Apr 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Card picker - Entities card preview interactive

3 participants