mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Add ReactEditorView::setPlaceholderText shim
This commit is contained in:
@@ -223,3 +223,9 @@ class ReactEditorView extends View
|
||||
resetDisplay: -> # No-op shim for package specs
|
||||
|
||||
redraw: -> # No-op shim
|
||||
|
||||
setPlaceholderText: (placeholderText) ->
|
||||
if @component?
|
||||
@component.setProps({placeholderText})
|
||||
else
|
||||
@props.placeholderText = placeholderText
|
||||
|
||||
Reference in New Issue
Block a user