# IsReadOnly attribute in TextInput is ignored

**URL:** https://forums.fusetools.com/t/isreadonly-attribute-in-textinput-is-ignored/3664
**Category:** Bug Reports
**Created:** [March 15, 2018, 6:16am UTC](https://forums.fusetools.com/t/isreadonly-attribute-in-textinput-is-ignored/3664 "2018-03-15T06:16:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![poul.kg](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/poul.kg/32/585_2.png) [@poul.kg](https://forums.fusetools.com/u/poul.kg)
#### Post date: [March 15, 2018, 6:16am UTC](https://forums.fusetools.com/t/isreadonly-attribute-in-textinput-is-ignored/3664/1 "2018-03-15T06:16:17Z")

</div>

Fuse version 1.7.3 (build 15528)

macOS

iOS preview

According to documentation here: [https://www.fusetools.com/docs/fuse/controls/textinput](https://www.fusetools.com/docs/fuse/controls/textinput)

I expect that TextInput should be read only if I specify `IsReadOnly` attribute to `true` and user should not be able to edit text.

Also keyboard should not appear on the screen when I focus on read only text input.

But I can edit text anyway.

Code which reproduces issue:

```auto
<App>
    <JavaScript>
        var Observable = require('FuseJS/Observable');
        module.exports = {
            isReadOnly: true,
            isReadOnlyObs: Observable(true),
            inputOneText: Observable("xxx"),
            inputTwoText: Observable("yyy"),
            inputThreeText: Observable("zzz")
        };
    </JavaScript>
    <DockPanel>
        <StackPanel Padding="10" Dock="Left">
            <TextInput Value="{inputOneText}" IsReadOnly="true"/>
            <TextInput Value="{inputTwoText}" IsReadOnly="{isReadOnly}"/>
            <TextInput Value="{inputThreeText}" IsReadOnly="{isReadOnlyObs}"/>
        </StackPanel>
        <StackPanel Padding="10" Dock="Right">
            <Text Value="{inputOneText}"/>
            <Text Value="{inputTwoText}"/>
            <Text Value="{inputThreeText}"/>
        </StackPanel>
    </DockPanel>
</App>

```

---

<div class="post-metadata">

### Author: ![Arturs](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/arturs/32/582_2.png) [@Arturs](https://forums.fusetools.com/u/Arturs)
#### Post date: [March 16, 2018, 4:05pm UTC](https://forums.fusetools.com/t/isreadonly-attribute-in-textinput-is-ignored/3664/2 "2018-03-16T16:05:31Z")

</div>

Hey!

I found similar [issue](https://github.com/fusetools/fuselibs-public/issues/492) and left a reference to your post.
