Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clicking into a textarea crashes the app #35

Open
catskull opened this issue Sep 11, 2018 · 2 comments
Open

Clicking into a textarea crashes the app #35

catskull opened this issue Sep 11, 2018 · 2 comments

Comments

@catskull
Copy link

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.
@mimecorg
Copy link
Owner

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

@catskull
Copy link
Author

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants