mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
better sticker change handling
This commit is contained in:
parent
a1f9704c0b
commit
60b8fd51a2
2 changed files with 33 additions and 22 deletions
|
@ -4,6 +4,7 @@ import classnames from 'classnames';
|
|||
interface Props {
|
||||
value: string;
|
||||
onChange: (text: string) => void;
|
||||
onBlur: () => void;
|
||||
}
|
||||
|
||||
type State = {
|
||||
|
@ -50,6 +51,7 @@ class StickerDesc extends React.PureComponent<Props, State> {
|
|||
onMouseDown={this.blockMouse}
|
||||
onDragStart={this.blockMouse}
|
||||
ref={el => { this.input = el; }}
|
||||
onBlur={this.props.onBlur}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue