Skip to content

Commit

Permalink
Bring back title
Browse files Browse the repository at this point in the history
  • Loading branch information
HarelM committed Dec 22, 2023
1 parent de77710 commit 1a7754c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/InputString.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export type InputStringProps = {
disabled?: boolean
spellCheck?: boolean
'aria-label'?: string
title?: string
};

type InputStringState = {
Expand Down Expand Up @@ -72,6 +73,7 @@ export default class InputString extends React.Component<InputStringProps, Input
style: this.props.style,
value: this.state.value === undefined ? "" : this.state.value,
placeholder: this.props.default,
title: this.props.title,
onChange: (e: React.BaseSyntheticEvent<Event, HTMLInputElement, HTMLInputElement>) => {
this.setState({
editing: true,
Expand Down
1 change: 1 addition & 0 deletions src/components/_DataProperty.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ export default class DataProperty extends React.Component<DataPropertyProps, Dat
<div className="maputnik-data-spec-property-input">
<InputString
value={this.props.value?.property}
title={"Input a data property to base styles off of."}
onChange={propVal => this.changeDataProperty("property", propVal)}
/>
</div>
Expand Down

0 comments on commit 1a7754c

Please sign in to comment.