Skip to content

Commit

Permalink
Fix struct view annotation styling to avoid treating href values …
Browse files Browse the repository at this point in the history
…as links when they are falsy
  • Loading branch information
lahmatiy committed Mar 19, 2024
1 parent d05ec46 commit 834f119
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- Enabled `positionMode: natural` for tooltips by default, can be changed via tooltip options
- Exposed type checking helpers `isArray()`, `isSet()` and `isRegExp()`
- Fixed `badge` view options when it receives an array as data
- Fixed `struct` view annotation styling to avoid treating `href` values as links when they are falsy
- Fixed a sticky tooltip for "Enable view inspection" button on inspecting start
- Fixed the delayed popup display after calling the `hide()` method
- Fixed positioning of popups with `position: pointer`
Expand Down
2 changes: 1 addition & 1 deletion src/views/struct/render-annotations.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function renderAnnotations(annotations) {

const annotationEl = createElement(href ? 'a' : 'span', {
class: elClassName,
href,
href: typeof href === 'string' ? href : undefined,
target: external ? '_blank' : undefined
});

Expand Down

0 comments on commit 834f119

Please sign in to comment.