vuido icon indicating copy to clipboard operation
vuido copied to clipboard

Clicking into a textarea crashes the app

Open catskull opened this issue 5 years ago • 2 comments

I have a tab with a TextArea in it, and when I click on the textarea, the window crashes.

Console output:

/bin/sh: line 1: 20865 Segmentation fault: 11  node ./dist/main.min.jserror Command failed with exit code 139.

catskull avatar Sep 11 '18 20:09 catskull

I could not reproduce this. Can you provide some code? What OS are you using?

mimecorg avatar Sep 13 '18 20:09 mimecorg

Sorry for the lack of info! I'm on macOS 10.12.6.

I was just making a little demo app that had each one of the components in it. Here's the code:

<template>
  <Window
    title="Test App"
    width="400"
    height="600"
    margined
    @close="exit"
  >
    <Tab margined>
      <Box
        label="Dialogs"
        padded>
        <Text>Clicked {{ number }} times!</Text>
        <Box
          horizontal
          padded
        >
          <Button
            stretchy
            @click="number+=1"
          >Increment</Button>
          <Button
            stretchy
            @click="number-=1"
          >Decrement</Button>
        </Box>
        <Box
          horizontal
          padded
        >
          <Button
            stretchy
            @click="openDialog"
          >Open Dialog</Button>
          <Button
            stretchy
            @click="openFileDialog"
          >Select File</Button>
        </Box>
      </Box>
      <Box
        label="Inputs"
        padded>
        <Group
          title="Name input"
          margined>
          <Form padded>
            <TextInput
              v-model="firstName"
              label="First name:"/>
            <TextInput
              v-model="lastName"
              label="Last name:"/>
          </Form>
        </Group>
      </Box>
      <Box
        label="Widgets"
        padded>
        <Button>OK</Button>
        <TextArea v-model="textbox"/>
        <Checkbox v-model="checkboxState">Checkbox</Checkbox>
        <Combobox
          :items="[ 'Option 1', 'Option 2', 'Option 3' ]"
          v-model="text"/>
        <DatePicker/>
        <DateTimePicker/>
        <DropdownList
          :items="[ 'Option 1', 'Option 2', 'Option 3' ]"
          v-model="selected"/>
        <ProgressBar :value="progress"/>
        <RadioButtons
          :items="[ 'Option 1', 'Option 2', 'Option 3' ]"
          v-model="radio"/>
        <Separator horizontal/>
        <Slider
          v-model="slider"
          min="0"
          max="100"/>
        <Spinbox
          v-model="spinbox"
          min="0"
          max="100"/>
      </Box>
    </Tab>
  </Window>
</template>

<script>
export default {
  data () {
    return {
      number: 0,
      firstName: '',
      lastName: '',
      checkboxState: false,
      color: undefined,
      text: 'Select',
      selected: 1,
      progress: -1,
      radio: 1,
      slider: 0,
      textbox: 'enter some text',
      port: undefined
    }
  },

  created  () {
  },

  methods: {
    exit () {
      this.$exit()
    },

    openDialog () {
      this.$dialogs.msgBoxError('Dialog!', 'Are you sure you are okay with your life choices?')
    },

    openFileDialog () {
      let filepath = this.$dialogs.openFile()
      console.log(filepath)
    }
  }
}
</script>

catskull avatar Sep 24 '18 22:09 catskull