0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Fixed email-cta card button input placeholder disappearing on focus

no issue

- behaviour was from copy-pasting from a different input where the placeholder was intentionally hidden on focus, that's not desirable in this case
This commit is contained in:
Kevin Ansfield 2021-09-02 07:42:06 +01:00
parent ba5b5f7935
commit 233e57071f

View file

@ -91,10 +91,8 @@
id={{this.buttonTextInputId}}
name="button-text"
value={{@payload.buttonText}}
placeholder={{if this.buttonFocused "" "Add button text"}}
placeholder="Add button text"
{{on "input" this.setButtonText}}
{{on "focus" (fn (mut this.buttonFocused) true)}}
{{on "blur" (fn (mut this.buttonFocused) false)}}
{{on-key "Enter" (fn this.focusElement "#button-url-input")}}
>