Skip to content

Commit

Permalink
Set default value for placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
electrikmilk committed Nov 22, 2023
1 parent 6627303 commit b446e55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface Aggrandizements {
PropertyName: string
}

export function renderValue(value?: any, placeholder?: string): HTMLElement {
export function renderValue(value?: any, placeholder: string = 'Value'): HTMLElement {
const container = document.createElement('div');
if (value || typeof value === 'boolean' || value === 0) {
container.className = 'sp-value';
Expand Down

0 comments on commit b446e55

Please sign in to comment.