From 851697f9008f336143f1394eb42df2e954b5479d Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Mon, 5 Aug 2019 18:17:29 +0200 Subject: [PATCH] Make input readonly instead of disabled --- frontend/src/Main.elm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/Main.elm b/frontend/src/Main.elm index bfcf1da..2aa0ab0 100644 --- a/frontend/src/Main.elm +++ b/frontend/src/Main.elm @@ -25,7 +25,7 @@ import Html , text , ul ) -import Html.Attributes exposing (disabled, href, placeholder, style, value) +import Html.Attributes exposing (href, placeholder, readonly, style, value) import Html.Events exposing (onInput) import Parse exposing (parseUrl) import Ribbon exposing (ribbon) @@ -128,7 +128,7 @@ body state = article myStyle [ input (myStyle2 [ placeholder "GitHub/GitLab/Bitbucket URL", value state.url, onInput UrlChange ]) [] - , input (myStyle2 [ disabled True, value (displayMUrl state.parsed) ]) [] + , input (myStyle2 [ readonly True, value (displayMUrl state.parsed) ]) [] , h2 myStyle [ text "Caching" ] , p myStyle